I'd like to be able to access my DSL modem, which is acting as a bridge, from within my local network. I've got a setup like this:
{Local network 192.168.1/24}
|
rl0:192.168.1.250
[OpenBSD Router]
rl1:up
tun0:pppoe
|
[Bridge DSL modem IP:192.168.1.254]
|
{Internet}
I'd like to access the Bridge. To do this, I'd expect to have to give rl1
an address (i.e. ifconfig rl1 192.168.1.249
) and then add a route (i.e. route add 192.168.1.254/32 -ifp rl1
). I've done the first part, i.e. add the router address. The relevant bit of the ifconfig
on the router returns:
rl0: flags=8843 mtu 1500 lladdr 00:20:18:dc:e3:d9 priority: 0 media: Ethernet autoselect (100baseTX full-duplex) status: active inet 192.168.1.250 netmask 0xffffff00 broadcast 192.168.1.255 inet6 fe80::220:18ff:fedc:e3d9%rl0 prefixlen 64 scopeid 0x1 rl1: flags=8843 mtu 1500 lladdr 00:30:f1:16:28:2a priority: 0 media: Ethernet autoselect (100baseTX full-duplex) status: active inet6 fe80::230:f1ff:fe16:282a%rl1 prefixlen 64 scopeid 0x2 inet 192.168.1.249 netmask 0xffffff00 broadcast 192.168.1.255 tun0: flags=8051 mtu 2048 priority: 0 groups: tun egress media: Ethernet autoselect status: active inet a.b.c.d --> w.x.y.z netmask 0xffffffff
However, I do not know the correct command to add a route for 192.168.1.252/32 through the router. I've tried with a lot of variantes of route add ***
, to no avail.
Incidentally, the router (a Speedtouch) ought to also respond on IP address 10.0.0.138
.
I'd be much obliged for any input and suggestions.
Thank you.
Brian
Best Answer
I have a similar configuration that works flawlessly. Here are my recommendations:
match out on $aux_ether_if from $int_80211_if:network to $aux_ether_if:network nat-to $aux_ether_if
pass out on $aux_ether_if
Hope this helps.