Defcon-1-Logo

           [Home]    [FBSD Articles]    [Scripts Corner]    [Contribute]    [Search]    [FBSD Links]    [Files]

About Us

FreeBSD Articles
  *Hardware
  *Networking
  *Security
  *Software
  *X Windows


Files / Scripts
Newbies Corner
Tech. Talk
Tips and Tricks


FreeBSD Links

Articles in other
Languages :
  *French Articles
  *Spanish Articles

Want to Help ?
 
   Click Here

Email Users5

Search:
 

 


FreeBSD Search:


 

 

Powered-By-Apache-Logo

10 Min. Guide to IPfilter

So you want to share your new DSL or cable modem connection with all of the machines on your LAN, no problem. You can do this with ipnat, a program that is part of the ipfilter firewall package.

 

You will need to add two lines to your kernel to allow ipfilter to work.

 

options IPFILTER

options IPFILTER_LOG

 

Compile these if you kernel and reboot.

Now you need a file called /etc/ipnat.rules. In this file you need to have the following

map ed0 10.0.0.0/24 -> 208.208.208.208/32

 

ed0 needs to be your nic that has a real ip and the 208.208.208.208 needs to be your real ip

 

then create/add to your /etc/rc.local file with the line:

ipnat -f /etc/ipnat.rules

 

That way it fires ipnat when you boot up. If you want to fire up ipnat without rebooting, just type:

ipnat -f /etc/ipnat.rules

 

This should get you started, for more info check out http://coombs.anu.edu.au/~avalon for the official ipfilter website.

 

Questions, commments, or what ever technoid@defcon1.org

 By: Technoid

Email Us

ghostrdr@defcon1.org

This site cannot be duplicated without permission

© 1998 - 2010 Defcon1, www.defcon1.org. Copyrights for all materials on this web site are held by the individual authors, artists, photographers or creators. Materials may not be reproduced or otherwise distributed without permission of www.defcon1.org and the content's original author.