Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Security-Basics
[Top] [All Lists]

Re: Open Source Router with NAT

Subject: Re: Open Source Router with NAT
Date: Fri, 29 Jun 2007 10:24:25 -0500
Take a PC (or Mac, or Alpha, or anything else Linux will run on), and add two network cards to it.
Boot your favorite version of Linux, and install it.
Make sure iptables is installed (should come installed by default on just about any current distro).
Use the GUI of your choice to setup appropriate iptables rules (http://www.linuxguruz.com/iptables/, scroll down to Tools)**
Or, if you just want masquerading, here's an example config that'll take care of that for you (needs to be typed in from the command line, or run as a script):
iptables -F FORWARD
iptables -F fw-interfaces
iptables -F fw-open
iptables -N fw-interfaces
iptables -N fw-open
iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -j fw-interfaces
iptables -A FORWARD -j fw-open
iptables -A fw-interfaces -i eth1 -j ACCEPT
#replace xxx.xxx.xxx.xxx/xxx.xxx.xxx.xxx with your public ip/subnet
iptables -t nat -A POSTROUTING -s xxx.xxx.xxx.xxx/xxx.xxx.xxx.xxx -o eth0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward


~Dathan

Mohamed Farid wrote:
Dear All :
I need to have an open source router solution with the following
scenario :

Plug and play router :
CD to boot a new fresh PC from -> install whatever it needs to install
-> I have an up and running router with :
- Good and easy management GUI Console
- Nat Supported
- Good Reporting or Monitoring Console

Any Advises ?


Mohamed Farid ,,


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This e-mail (including attachments) is classified as Mediterranean Smart Cards Company confidential and proprietary information The recipient hereby is committed to hold in strict confidence the contents of this (e-mail, document, and information) and not to disclose to any third party without the prior written consent of Mediterranean Smart Cards Company. Recipient will be held liable for any unauthorized disclosure.
It is intended solely for the addressee. Unless you are the addressee, you may not read, copy, use or store this e-mail in any way, or permit others to. If you have received it in error, please notify the sender by return e-mail and delete the message in its entirety, including any attachments
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *




<Prev in Thread] Current Thread [Next in Thread>