Openbsd 4.1 Routing Issues

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Openbsd 4.1 Routing Issues

peterwkc
Hello to all, I had try to set up openbsd as home router but eventually it
fail to function properly.

External Interface (vr0)
192.168.1.2 255.255.255.0 none

Internal Interface (rl0)
172.16.10.1 255.255.255.0 none

Wireless Interface (ath0)
192.168.5.1 255.255.255.0 none

*Routing Table* (route show | more)
Destination Gateway Flags Interface
default 175.13.8.127.254 UGS tun0
loopback loopback UGRS lo0
loopback loopback UH lo0
172.16.10/24 link#2 UC rl0
172.16.10.3 inet6 UHLC rl0
175.130.127.254 175.135.116.213 (PPPOE IP address) UH tun0
192.168.1/24 link#1 UC vr0
192.168.5/24 link#3 UC ath0

My wireless interface light is keep on blinking rather stay on stable mode.

*Packet Filter Rules* (pfcrt -sr)
nat on vr0 from !(vr0) to any -> (vr0) round-robin
scrub on vr0 all no-df fragment reassemble
scrub on vr0 all reassemble tcp

block drop in log on vr0 all
pass out quick on ath0/rl0 keep state.


Please help me why my pc cannot connect to internet. My pc can even ping
external interface ip address (192.168.1.2) but it shows no internet
access.

My external interface connects to a modem with ip address of 192.168.1.254.

Please help.

--
Linux

Reply | Threaded
Open this post in threaded view
|

Re: Openbsd 4.1 Routing Issues

Adam Thompson
It appears, at first glance, that your default route is incorrect.
Is your external IP address assigned statically or by DHCP?
If statically, then you will want to edit /etc/mygate to set your default route correctly.
(Also, are you really running OpenBSD version 4.1, and if so, why???)
-Adam

On March 23, 2014 11:44:00 PM CDT, Wong Peter <[hidden email]> wrote:

>Hello to all, I had try to set up openbsd as home router but eventually
>it
>fail to function properly.
>
>External Interface (vr0)
>192.168.1.2 255.255.255.0 none
>
>Internal Interface (rl0)
>172.16.10.1 255.255.255.0 none
>
>Wireless Interface (ath0)
>192.168.5.1 255.255.255.0 none
>
>*Routing Table* (route show | more)
>Destination Gateway Flags Interface
>default 175.13.8.127.254 UGS tun0
>loopback loopback UGRS lo0
>loopback loopback UH lo0
>172.16.10/24 link#2 UC rl0
>172.16.10.3 inet6 UHLC rl0
>175.130.127.254 175.135.116.213 (PPPOE IP address) UH tun0
>192.168.1/24 link#1 UC vr0
>192.168.5/24 link#3 UC ath0
>
>My wireless interface light is keep on blinking rather stay on stable
>mode.
>
>*Packet Filter Rules* (pfcrt -sr)
>nat on vr0 from !(vr0) to any -> (vr0) round-robin
>scrub on vr0 all no-df fragment reassemble
>scrub on vr0 all reassemble tcp
>
>block drop in log on vr0 all
>pass out quick on ath0/rl0 keep state.
>
>
>Please help me why my pc cannot connect to internet. My pc can even
>ping
>external interface ip address (192.168.1.2) but it shows no internet
>access.
>
>My external interface connects to a modem with ip address of
>192.168.1.254.
>
>Please help.
>
>--
>Linux

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Reply | Threaded
Open this post in threaded view
|

Re: Openbsd 4.1 Routing Issues

Adam Thompson
In reply to this post by peterwkc
Whoops, I just noticed the PPPoE link.
You might try manually overriding the default route to see if that solves your problem.
I'm sorry I don't remember the exact syntax needed to do this offhand.
I know under Linux it would be "route add default dev tun0", but I'm not sure of the OpenBSD syntax, as I'm not at my computer right now.

-Adam

On March 23, 2014 11:44:00 PM CDT, Wong Peter <[hidden email]> wrote:

>Hello to all, I had try to set up openbsd as home router but eventually
>it
>fail to function properly.
>
>External Interface (vr0)
>192.168.1.2 255.255.255.0 none
>
>Internal Interface (rl0)
>172.16.10.1 255.255.255.0 none
>
>Wireless Interface (ath0)
>192.168.5.1 255.255.255.0 none
>
>*Routing Table* (route show | more)
>Destination Gateway Flags Interface
>default 175.13.8.127.254 UGS tun0
>loopback loopback UGRS lo0
>loopback loopback UH lo0
>172.16.10/24 link#2 UC rl0
>172.16.10.3 inet6 UHLC rl0
>175.130.127.254 175.135.116.213 (PPPOE IP address) UH tun0
>192.168.1/24 link#1 UC vr0
>192.168.5/24 link#3 UC ath0
>
>My wireless interface light is keep on blinking rather stay on stable
>mode.
>
>*Packet Filter Rules* (pfcrt -sr)
>nat on vr0 from !(vr0) to any -> (vr0) round-robin
>scrub on vr0 all no-df fragment reassemble
>scrub on vr0 all reassemble tcp
>
>block drop in log on vr0 all
>pass out quick on ath0/rl0 keep state.
>
>
>Please help me why my pc cannot connect to internet. My pc can even
>ping
>external interface ip address (192.168.1.2) but it shows no internet
>access.
>
>My external interface connects to a modem with ip address of
>192.168.1.254.
>
>Please help.
>
>--
>Linux

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.