Hello I am trying to connect my obsd 3.8-stable system to internet via PPPoE ( ISDN connection-64Kbps). ppp program reports an established connection, ifconfig shows an IP address assigned to tun0 interface. But i simply can't use any program like ping, ftp or firefox to connect to any server. They say "no route to host". I must be doing something stupid. Is the pf ruleset the problem?
I have configured the userland pppoe with a plain ppp.conf: default: set log Phase Chat LCP IPCP CCP tun command pppoe: set device "!/usr/sbin/pppoe -i rl0" set mtu max 1492 set mru max 1492 set speed sync disable acfcomp protocomp deny acfcomp set authname "[EMAIL PROTECTED]" set authkey "************" When i run ppp, here is what i see- #ifconfig rl0 up #ppp pppoe Working in interactive mode Using interface tun0: ppp ON mycomp> dial ppp ON mycomp> Warning: deflink: Reducing configured MRU from 1500 to 1492 Ppp ON mycomp> PPp ON mycomp> PPP ON mycomp> $ifconfig lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33224 groups: lo0 inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 lladr 00:50:ba:a1:b1:0c media: Ethernet autoselect (none) status no carrier inet6 fe80::250:baff:fea7:b47c%rl0 prefixlen 64 scopeid 0x1 pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33224 pfsync0: flags=0<> mtu 1348 enc0: flags=0<> mtu 1536 tun0: flags=8011<UP,POINTTOPOINT,MULTICAST> mtu 1492 inet 210.211.129.64 --> 210.211.128.1 netmask 0xffffffff inet6 fe80::250:baff:fea7:b47c%tun0 -> prefixlen 64 tentative scopeid 0x6 #cat pf.conf scrub in all block in all block out all antispoof quick for { rl0 tun0 lo0 } pass in log on tun0 proto tcp from any to any port ssh flags S/SA \ synproxy state pass out on tun0 proto tcp all modulate state flags S/SA pass out on tun0 proto { icmp, udp } all keep state pass in log on rl0 proto tcp from any to any port ssh flags S/SA \ synproxy state pass out on rl0 proto tcp all modulate state flags S/SA pass out on rl0 proto { icmp, udp } all keep state Do i need to have the above three rules for both tun0 and rl0? pf is enabled in rc.conf apart from inetd and sshd. Not running named. This is a simple home PC- i386 with GENERIC kernel patched up to date. rl0 is definitely the right interface, got it from dmesg output. Sorry, did not include dmesg output since it is too long to type. If needed, i will. I did not customize dhclient.conf. I created a hostname.tun0 with just "dhcp" in it. That did not solve my problem. Still cannot connect. I do not have any other hostname.rl0 etc.No other config files in /etc/ppp directory were changed. I did not customize resolv.conf by hand. Seems like ppp puts stuff in it everytime i invoke it. #cat resolv.conf nameserver 203.197.30.4 nameserver 202.54.2.17 Kindly let me know what i'm doing wrong. Thanks a lot for your time. Srikant. -- Srikant Tangirala [EMAIL PROTECTED] -- http://www.fastmail.fm - The professional email service