Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


modem? | 10 comments | Create New Account
Click here to return to the 'modem?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
modem?
Authored by: carson on Nov 24, '02 10:31:20AM

For a modem connection, you'll need to replace eth0 with ppp0 in most
cases.

ipfw add divert natd all from <?? any ??> to any via ppp0

Note that I've put some question marks in there. Redirecting ALL packets
isn't very safe. I'd change that to your LAN's ip address and subnet mask. For example:

ipfw add divert natd all from 192.168.0.0:255.255.255.0 to any via ppp0

You could replace 192.168.0.0 with a specific computer on the LAN and repeat for each computer you want to allow access. That would be even better security although slightly slower performance wise (negligible). Hope that helps.

Everything should run as expected.

-Carson



[ Reply to This | # ]