Hello,
i have this situation:
server1 -- (eth1)bridge(eth0) -- server2
(eth2 192.168.0.1)
|
(eth0 192.168.0.2)
server3
eth0 and eth1 are in bridge mode. eth2 is in routing mode, this
interface is not in any bridge and it have a IP address.
What i need is when server1 try to connect to server2 on port 25 (smtp)
it will be on bridge machine redirected to server3. Is it possible?
I tried this (on bridge machine) and it seems it dont work:
/sbin/iptables -t nat -A POSTROUTING -o eth2 -j SNAT --to-source
192.168.0.1
/sbin/iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 25 -j DNAT
--to-destination 192.168.0.2
tx
kolisko
--
---
Michal Kolesár
[EMAIL PROTECTED]
http://kolisko.penguin.cz
+420.777.225.297
Don't send me any attachment in Micro$oft (.DOC, .PPT) format please
Read http://www.fsf.org/philosophy/no-word-attachments.html
Preferable attachments: .PDF, .HTML, .TXT
Thanx for adding this text to Your signature
_______________________________________________
Bridge mailing list
[EMAIL PROTECTED]
http://www.math.leidenuniv.nl/mailman/listinfo/bridge