IPTABLES HELP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ok I have had some great help with people on this board I just have not
found an answer to my problem.
 
This is what I need to happen
 
[Client]--->T1(12.22.81.1) -->[Linux 12.22.81.8 10025]-->[Windows Mail
Server 204.250.113.2 25] 
 
Then I would like it to also send the data back though T1 (12.22.81.1)
 
Current clients get to our SMTP server IE:
[Client]--->T1(204.250.113.1) -->[Windows Mail Server 204.250.113.2 25]
 
 
The point of this is my boss wants us to divert some traffic though t1
(12.22.81.1) but keep the our mail server on its current network
 
This is what I have tried
 
iptables -F
service iptables stop
 
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 10025 -j DNAT --to
204.250.113.2:25
 
iptables -t filter -A FORWARD -i eth0 -d 204.250.113.2 - o eth1 -p tcp
--dport 25 -j ACCEPT
 
service iptables save
 
service iptables start
 
telnet 12.22.81.8 10025
 
I have no other scripts running in my IPTABLES that is why I do the flush
and Ipfowarding is set to 1
 
Any Ideas?

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux