Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:
edgeos



Firewall Wizards: Re: Forward 2 networks

Re: Forward 2 networks

From: Rudi Starcevic <tech_at_wildcash.com>
Date: Fri, 03 Dec 2004 11:03:39 -0800

Hi,

Thanks for the replies.

This post should have gone to a routing list but I did get some replies
both on and off list so I thought I'd reply via the list and end this
thread.

As this is an abosolute basic routing query the answer is absolutely simple.

The goal is to have 2 private networks ( 2 NICs ) routed out on network
( 1 NIC )

I think the best answer is by example:

[ 1st network ]
ifconfig eth0 192.168.2.7
route add default gw 192.168.2.1

[ 2nd network ]
ifconfig eth1 192.168.3.7

# ENABLE FORWARDING / NAT / MASQUERADING
echo "1" > /proc/sys/net/ipv4/ip_forward

# MASQUERADING / NAT
# postrouting rule (NAT)
iptables --table nat --append POSTROUTING -o eth0 -j MASQUERADE

# enable ftp NAT
modprobe ip_nat_ftp

This work just fine.
The next task will be to set the default policy to DROP. It is currently
set to ACCEPT.

Sorry to bother you with such simple and wrong subject posts.
Many thanks for the replies.

Regards Rudi
_______________________________________________
firewall-wizards mailing list
firewall-wizards_at_honor.icsalabs.com
http://honor.icsalabs.com/mailman/listinfo/firewall-wizards
Received on Dec 05 2004

[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
edgeos