- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: How implement NAT on debian sarge machine
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2006 07:16 PM
05-10-2006 07:16 PM
How implement NAT on debian sarge machine
I am tring to make same firewall for my SOHO at home and I have the following situation.
HostA ( two network cards eth0=140.x.x.x and eth1=192.x.x.x) will be a firewall which will NAT
some ports from eth0 to eth1. On eth1 I will connect the rest of my network.
On HostA is installed Debian ant I have administrative rights.
So my question is how translate traffic from eth0 to eth1, I mean from public IP address to private set of address.
If you have some manual for this probelem let me know, I mean send me a link to read it .
Thank you in advance
Debian111
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2006 08:21 PM
05-10-2006 08:21 PM
Re: How implement NAT on debian sarge machine
There are my examples.
# 1 NAT rule. This rule translates 140.X.X.X:81 {eth0} to 192.X.X.1:80 {eth1}
iptables -t nat -A PREROUTING -d 140.X.X.X \
-i eth0 --protocol tcp --destination-port 81 \
-j DNAT --to-destination 192.X.X.1:80
# 2 NAT rule. This rule translates 140.X.X.X:82 {eth0} to 192.X.X.2:80 {eth1}
iptables -t nat -A PREROUTING -d 140.X.X.X \
-i eth0 --protocol tcp --destination-port 82 \
-j DNAT --to-destination 192.X.X.2:80
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2006 09:48 PM
05-10-2006 09:48 PM
Re: How implement NAT on debian sarge machine
ip route add ///// I read it somewhere, so I am interesting how implement this on my machine.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2006 10:31 PM
05-10-2006 10:31 PM
Re: How implement NAT on debian sarge machine
AFAIK, You have to use netfilter/iptables.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 03:22 AM
05-11-2006 03:22 AM
Re: How implement NAT on debian sarge machine
Install the script for a two or three
interface system, and configure NAT as
per the documentation.
Documentation at:
http://www.shorewall.net/shorewall_quickstart_guide.htm