On Fri, Jul 09, 2010 at 02:19:42PM -0700, Matt S wrote: > Given the following: > > [internet - DSL Modem - 192.168.0.1]----------[bge0:192.168.0.254 - OpenBSD > 4.7 - em0:10.40.60.1]----------[Laptop - DHCP] > > net.inet.ip.forwarding=1 > > How can I get my laptop to reach the internet? I kind of figured that all I > would have to do is have forwarding enabled on the OpenBSD box without > specifying any additional routing instructions. I can ping my laptop from > the OpenBSD box. Since my default gateway is effectively 192.168.0.1, I am > puzzled as to why I cannot ping that address from the laptop. What could I > possibly be missing? I'm tearing my hair out ..... >
Simply because the DSL modem has no idea where 10.40.60.1 is and sends it down the DSL pipe. You need to add a route on the modem for this network pointing to you OpenBSD box. If not possible have a look at bridge(4) -- :wq Claudio