Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ip Masquerading with FreeBSD

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I'm relatively new to freebsd, but I'm trying to set up a gateway from my internal lan to my cable modem. I recompiled my kernel to allow IP filtering and redirection, changed rc.conf to start up natd and ipfw rules that redirect everything to it, but I can't seem to get natd to forward anything out of our internal lan. I have a second network card that is setup with 192.168.5.1, and I want everything from the 192.168.5.* subnet to be redirected out. Nothing I've tried works, and I know I'm really close. I've done this before in Linux, but I wanted to get a little more familiar with freebsd. Is there something simple I'm missing? Or is there a howto that shows some good concrete examples somewhere? Thanks a bunch.
 
Show me the relevant parts of rc.conf and rc.firewall (of course xxx.xxx.xxx.xxx your external IPs)

Then show me the output of "ifconfig -a", and ps -ax, if possible.
 
I managed to get it working, my configs were fine but when I recompiled my kernel I had taken out some devices that I didn't have as well, and somehow managed to accidently comment out the bpf device, oops. Thanks anyway.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top