Loading PF after pppoe

2007-09-27 Thread Amit Finkler
I now use the in-kernel pppoe and pf, but on boot pf loads itself before the
networking is up.

How does one cause the networking to be up before the pf rules?

Amit.



Loading PF after ppp

2007-09-26 Thread Amit Finkler
I connect to the internet using pppoe(8) by putting the following line
in /etc/rc.local.conf:


ppp -ddial pppoe


However, the pf rules load before I have an internet connection and
therefore pfctl reports an error.


How does one load PF after ppp?


Amit.



Re: Does OpenBSD support Hebrew?

2007-09-24 Thread Amit Finkler
Marc,

Hebrew works fine on openoffice with all the major linux
distributions. If you could suggest how to tackle this, I'd be happy
to have a look.

Amit

On 9/24/07, Marc Espie [EMAIL PROTECTED] wrote:
 We do not have full i18n support. The locale stuff in the base system
 is not finished (I know, I'm late...)

 Qt has its own locale system, so hebrew should work just fine in all
 Qt and KDE applications (including right-to-left text).

 Gnome and gtk also have some support.

 Vim supports more or less every script including hebrew.

 I don't know if there's any issue with input, I'm not familiar with
 hebrew, and I've only been working with japanese input.

 There might be some tweak to help OpenOffice. Does OpenOffice support
 hebrew on some platforms ? If it does, it might make sense to try to
 figure out the configuration differences.



Re: Does OpenBSD support Hebrew?

2007-09-23 Thread Amit Finkler
On 9/23/07, Dmitrij D. Czarkoff [EMAIL PROTECTED] wrote:
 On Sunday 23 September 2007 01:58:51 you wrote:
  On 9/22/07, Dmitrij D. Czarkoff [EMAIL PROTECTED] wrote:
   I believe OpenBSD's libiconv doesn't have UTF-8 support, so You might
   need to choose another locale...
 
  OK, let's assume I want to use the ISO-8859-8 locale. How do I do that?
 
  Amit.
 
   --
   Dmitrij D. Czarkoff

 Just the same way as with Your utf8 locale:
 $ echo export LC_ALL=he_IL.ISO-8859-8 LANG=he_IL.ISO-8859-8  ~/.xsession

Unfortunately, this locale (or for that matter, any he_IL) doesn't
exist on my system, i.e. in /usr/share/locale.

This brings me back to my original question: Does OpenBSD support Hebrew?

Amit.

 Should work (anyway does for me with ru_RU.KOI8-R).
 I don't know about OpenOffice - I'm avoiding it, but AbiWord works...

 --
 Dmitrij D. Czarkoff



Re: Does OpenBSD support Hebrew?

2007-09-23 Thread Amit Finkler
On 9/23/07, Ted Unangst [EMAIL PROTECTED] wrote:
 On 9/23/07, Amit Finkler [EMAIL PROTECTED] wrote:
  This brings me back to my original question: Does OpenBSD support Hebrew?

 in many cases, you want application support, and openbsd didn't write
 all the apps you use.  suppport is a pretty broad concept.


That is true, but I would expect that at least the locales would be
installed by default in /usr/share/locale so that a user from a
right-to-left speaking country would be able to use it. I volunteer to
make it so if I only knew how.



Does OpenBSD support Hebrew?

2007-09-22 Thread Amit Finkler
Dear subscribers/moderators,

Does OpenBSD fully support Hebrew? If indeed it does, how does one make
applications in X/KDE properly see/present Hebrew letters and filenames?

I have already added the following two lines to my .profile:

export LC_CTYPE=he_IL.UTF-8
export LC_COLLATE=he_IL.UTF-8

and this made it possible to show Hebrew filenames under normal KDE
applications properly. However, when I tried opening an OpenOffice
files, for example, which had Hebrew letters in it, it all appeared
meshed and garbled or just blanks instead of letters.

Amit.



Re: Does OpenBSD support Hebrew?

2007-09-22 Thread Amit Finkler
On 9/22/07, Jussi Peltola [EMAIL PROTECTED] wrote:
 Filenames in foreign languages can sometimes be a little problematic,
 because Unix doesn't really have any standard on how to store them on
 disk - filenames are just byte arrays. Because a machine may have users
 with different locales this can make sharing files very difficult, so
 the desktop environments seem to be storing filenames in UTF-8 with no
 regard to the locale.
 GTK apps also look at the environment variable G_FILENAME_ENCODING,
 which you may want to define, but if memory serves me correctly it
 defaults to UTF-8 so with an UTF-8 locale you don't need to care.

 Are you sure .profile is sourced in your X session? Try checking the
 environment variables are set in an xterm.

I don't know what you mean by sourced, but when I type set xterm I see them.

 The command locale will also print out the locale settings, but I can't
 remember if OpenBSD has one (I'm stuck on a painful mobile device so I
 can't check).

I don't  think it has one either. In any case I noticed that indeed
the two sets weren't really accepted by the system:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LC_ALL = (unset),
LC_CTYPE = he_IL.UTF-8,
LC_COLLATE = he_IL.UTF-8,
LANG = (unset)
are supported and installed on your system.
perl: warning: Falling back to the standard locale (C).
Can't resolve locale

 Do the filenames look ok if you ls them in an xterm?

OK, I checked that and they don't. They appear like gibberish and
question marks surrounded by circles. I guess this conforms to the
above perl warning. Maybe there just isn't a he_IL.UTF-8 locale for
OpenBSD.

 HTH,
 Jussi Peltola


 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.6 (GNU/Linux)

 iD8DBQFG9UGo0SX92aZxWNIRAuVUAKCEoA+wg57S7VA9saaiJ/3vjGcyOQCdEZnb
 JtD1KDPlmqEO51PrrcMOYiw=
 =b0l1
 -END PGP SIGNATURE-



Re: Unable to connect to the the ISP

2007-09-03 Thread Amit Finkler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Again some progress. I know this is a newbie blunder, but I entered my
username and password as 'username' and 'password' instead of username
and password. I still think it's worth mentioning in this mailing list
for possible future mistakes of newbies such as myself.


As a result of this important change in /etc/hostname.pppoe0, I
managed to get a valid IP address from my provider. However, I still
cannot access the inet via any service, be it ping, telnet, ftp or http.


In the ifconfig the one-before-last line of pppoe0 shows

inet AAA.AAA.AAA.AAA -- 0.0.0.1 netmask 0xff00

where AAA.AAA.AAA.AAA is my valid IP address. Do I need to enter a
different gateway or is 0.0.0.1 good enough?


Thanks,


Amit.
iD8DBQFG3ExpEzurR/yozRMRAn0uAKCsmNcDmeRSyH/0SXr15qIbJDQTgQCfW5dU
sMLMPmkxsaLSQvMfrLGV/Ys=
=LltP
-END PGP SIGNATURE-



Re: Unable to connect to the the ISP

2007-09-02 Thread Amit Finkler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

With the help of Jonathon, I think I've made some progress. I changed
/etc/hostname.pppoe0 to be the following:


pppoedev fxp0 authproto pap authname 'MYAUTHNAME' authkey 'MYPASSWORD'
!/sbin/ifconfig fxp0 up
!/sbin/ifconfig \$if inet 0.0.0.0 http://0.0.0.0 0.0.0.1
http://0.0.0.1 netmask 0x mtu 1452
!/sbin/route add default 0.0.0.1 http://0.0.0.1
up


and restarted the network. The output of ifconfig and dmesg are
attached in separate files. As you can see, I still don't get a proper
inet address, i.e. I'm still not connected. No error messages this time.


I have a conjecture. Is it possible that my ISP does not require
authentication and that the only thing that prevents me from
connecting is the 'authproto pap' entry in /etc/hostname.pppoe0?


Thanks,


Amit.
iD8DBQFG2wVLEzurR/yozRMRAr3EAJsESpewKNla+Cjx2QRZemrU2kjjiQCg/EUc
tJcnEjK2ysnyUheGqKrOlSY=
=9OT6
-END PGP SIGNATURE-

[demime 1.01d removed an attachment of type text/x-log which had a name of 
dmesg.log]

[demime 1.01d removed an attachment of type text/x-log which had a name of 
ifconfig.log]
up

[demime 1.01d removed an attachment of type application/pgp-signature which had 
a name of dmesg.log.sig]

[demime 1.01d removed an attachment of type application/pgp-signature which had 
a name of ifconfig.log.sig]

[demime 1.01d removed an attachment of type application/pgp-signature which had 
a name of hostname.fxp0.sig]



Unable to connect to the the ISP

2007-09-01 Thread Amit Finkler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,


I recently installed OpenBSD 4.1 on my computer and tried to connect
to my xDSL ISP via pppoe.


The contents of my /etc/hostname.fxp0 are: dhcp


The contents of /etc/ppp/ppp.conf are:


default:
set log Phase Chat LCP IPCP CCP tun command

pppoe:
set device !/usr/sbin/pppoe -i fxp0
set mtu max 1492
set mru max 1492
set speed sync
disable acfcomp protocomp
deny acfcomp
set authname myUsername
set authkey myPassword


The error message I get involves something about IPv6 format, but I'm
sure that my ISP knows nothing about IPv6. Therefore, I have two
questions:


1. How do I disable IPv6?

2. Does anyone know how I can overcome this problem and connect to the
internet?


Thanks,


Amit.
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFG2WpPEzurR/yozRMRAjy2AJ9g2KJgcox0u/OyiXbS262dNK8wjwCfQeV5
/pGyaBXFJgp/jOlJX7W+krM=
=zr0l
-END PGP SIGNATURE-



Re: Unable to connect to the the ISP

2007-09-01 Thread Amit Finkler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Stuart Henderson wrote:

 On 2007/09/01 16:34, Amit Finkler wrote:
   
 The error message I get involves something about IPv6 format
 

 something about IPv6 format? you can do better than that.
 copy-and-paste.


  

Antti Harri wrote:


 On Sat, 1 Sep 2007, Amit Finkler wrote:

 The contents of my /etc/hostname.fxp0 are: dhcp

 This should be just up.

 1. How do I disable IPv6?

 You don't need to, I'm sure that's not the problem.

 Btw, I suggest you to try the kernel mode pppoe.
 It's really simple to set up and works like
 a charm. See pppoe(4).


OK, so I configured /etc/hostname.pppoe0 as described in pppoe(4):

# The following line is all in one line
inet 0.0.0.0 255.255.255.255 NONE pppoedev fxp0 authproto pap authname
'myUsername' authkey 'myPassword' up
dest 0.0.0.1
!/sbin/route add default 0.0.0.1

and the corresponding ifconfig output is:

lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33224
groups: lo
inet 127.0.0.1 netmask 0xff00
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
rl0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500
lladdr 00:0a:cd:10:2b:c5
media: Ethernet autoselect
status: active
fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:0d:61:03:77:63
groups: egress
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet6 fe80::20d:61ff:fe03:7763%fxp0 prefixlen 64 scopeid 0x2
inet 10.0.0.2 netmask 0xff00 broadcast 10.255.255.255
pflog0: flags=0 mtu 33224
enc0: flags=0 mtu 1536
pppoe0: flags=8810POINTOPOINT,SIMPLEX,MULTICAST mtu 1492
dev: fxp0 state: initial
sid: 0x0 PADI retries: 0 PADR retries: 0
groups: pppoe
inet6 fe80::20a:cdff:fe10:2bc5%pppoe0 -  prefixlen 64 scopeid 0x6
inet 0.0.0.0 -- 0.0.0.0 netmask 0x

So I got rid of the nagging IPv6 message (nevermind what that was) but
I still can't manage to connect.

Amit.
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFG2YCSEzurR/yozRMRAtBuAJ9Ytf4hwV/+RBnk/HkzzIspRLWYbgCfcMUH
L0PatuQ/3xsXlE+TeNJ3Fq4=
=WO8M
-END PGP SIGNATURE-