On 2006/07/24 23:37, Julian D. Seifert wrote: > I'm running openbsd 3.8 (yes I know I should upgrade)
It's easier to upgrade when there's still only 1 release to jump. > I have an ipv4 tunnel over which a /29 ipv4 prefix is being > routed to my home. The interface of the tunnel ist tun0. > Actually it's an openvpn over which the network is routed. Don't forget to keep your openvpn package up-to-date, current version is openvpn-2.0.6.tgz; it's a security update so has been made available for current release (3.9) and the one previous (3.8). > For example let's say I get the network > 123.123.123.0/29 > routed through that tunnel. > I'd like to route the 123.123.123.2 to my 192.168.0.2, > 123.123.123.3 to 192.168.0.3 and so on - But I don't know how to > set up my routing tables. :/ > The obsd machine has rl0 with 192.168.0.1 as lan interface. Sounds like you probably want rdr or binat in pf.conf(5). Don't forget to enable PF if it isn't already, etc.