Linux Netfilter discussions
 help / color / mirror / Atom feed
* IPTABLES NAT
@ 2003-09-10  6:06 Matthew Mileham
  2003-09-10 16:04 ` Jim Carter
  0 siblings, 1 reply; 4+ messages in thread
From: Matthew Mileham @ 2003-09-10  6:06 UTC (permalink / raw)
  To: Netfilter Mailing List

[-- Attachment #1: Type: text/plain, Size: 674 bytes --]

Hi 

I wonder if any body can help me ?

I've got 2 Redhat 9 Linux Servers purely running iptables and only using the NAT function

I want to load balance over two boxes, I want to send traffic out the one box and SNAT 57.24.224.242, 
and return traffic to return to the second box and DNAT to 172.20.128.121 

If I send traffic over the one box and receive on the same box it works, but when I split the traffic it doesn't work !

the rules are as follows 

Box1 
iptables -t nat -A POSTROUTING -o eth1 -s 172.20.128.121 -j SNAT --to 57.24.224.242

Box2 
iptables -t nat -A PREROUTING -i eth1 -d 57.24.224.242 -j DNAT --to 172.20.128.121

Thanks 




[-- Attachment #2: Type: text/html, Size: 2129 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread
* RE: IPTABLES NAT
@ 2003-09-10  6:18 George Vieira
  0 siblings, 0 replies; 4+ messages in thread
From: George Vieira @ 2003-09-10  6:18 UTC (permalink / raw)
  To: Matthew Mileham, Netfilter Mailing List

[-- Attachment #1: Type: text/plain, Size: 491 bytes --]

Can you explain your network layout on this?
 
Are these 2 independant ISPs your connected through?

-----Original Message-----
From: Matthew Mileham [mailto:matthew@postbag.co.za]
Sent: Wednesday, September 10, 2003 4:07 PM
To: Netfilter Mailing List
Subject: IPTABLES NAT

 
Box1 
iptables -t nat -A POSTROUTING -o eth1 -s 172.20.128.121 -j SNAT --to 57.24.224.242
 
Box2 
iptables -t nat -A PREROUTING -i eth1 -d 57.24.224.242 -j DNAT --to 172.20.128.121
 
 
 
 
 


[-- Attachment #2: Type: text/html, Size: 1788 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread
* iptables nat
@ 2003-10-13  9:27 Lohan Spies
  0 siblings, 0 replies; 4+ messages in thread
From: Lohan Spies @ 2003-10-13  9:27 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 772 bytes --]

Hi all,
 
How can i configure a nat rule so that the original ip address is sended
to the nat server instead of the ip of the fw?
 
Thanks,
 
Lohan Spies 
Systems Administrator CSA / DBA / MCP
IQ Business  <http://www.iqgroup.net/> Group
Tel: +27 12 521 7309
Fax: +27 12 541 3441
Cell: +27 83 258 2698
l.spies@petzetakis-africa.co.za 


 

 


CONFIDENTIALITY CAUTION: If you have received this communication in error, please note that it is intended for the addressee only, is private and confidential and dissemination or copying prohibited. Please notify us immediately by e-mail and return the original message. We cannot assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. Thank you

[-- Attachment #2: Type: text/html, Size: 3937 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-10-13  9:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-10  6:06 IPTABLES NAT Matthew Mileham
2003-09-10 16:04 ` Jim Carter
  -- strict thread matches above, loose matches on Subject: below --
2003-09-10  6:18 George Vieira
2003-10-13  9:27 iptables nat Lohan Spies

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox