================ CUT ===============
Subject: Re: redirection
To: <lyra@xxxxxxxxxxxxx>
Cc: <netfilter@xxxxxxxxxxxxxxxxxxx>
I didnt catch the fact that you need the source address. Are you tracking
this for a reason? You can probably have iptables log the source address.
This does in fact work, been using it for about 6 months now. Let me post
my exact rules (IPs are obsfucated)
iptables -t nat -A PREROUTING -i eth0 -s 192.168.1.0/24 -p tcp --dport 80
-d 192.168.1.7 -j DNAT --to 192.168.1.7
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -d 192.168.1.7 -j
DNAT --to 192.168.1.11:80
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 192.168.1.7
Regards
Eric
================ CUT ===============
On this examples he use the same interface eth0 over the same subnet..
My problem is a bit different..
The server machine using iptables has only one interface like this one but the subnet where i need to redirect the packets are far geographically and with different ip..
I need to find a fix for my problem.. any idea out ?
Simone Sestini [ SS971-RIPE ]
Plug IT s.p.a. - Technical Office
Via Galileo Ferraris 216
52100 Arezzo
Titles:
System and Network Administrator
Data Transmission Manager
Fax
Web
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::