Sun, Jan 01, 2006 at 06:38:09PM -0500, Dave Feustel wrote:
I used to use a switch plugged into my dsl modem to hook up
multiple computers to the internet, but that no longer works,
(no reponse to 2nd computer's dhclient requests through the switch,
although 1st computer's requests are responded to).
So I have plugged my laptop into the 4-port(sis[0-3]) ethernet card
in my desktop and now have an ip address(192.168.1.32) assigned
to the laptop by dhcpd running on the desktop.
I also have net.inet.ip.forwarding=1 on the desktop.
I assume I need to add some rules to the laptop routing table
and to update the pf.conf rules on the desktop with a NAT rule.
What rule(s) do I need to add to pf.conf to give the laptop internet
access via the desktop?
dhcpd will likely tell your laptop to use your desktop as default
gateway; this is all that's needed to make the routing table on the
laptop work in the most common case.
As to your second question, see the PF User's Guide - it even has an
example detailing pretty much this scenario. It can be found at
Joachim