On Po, 2003-02-24 at 00:05, Bart De Schuymer wrote: > > 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? > > Yes. > > > 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 > > This should not be needed, since Linux will use the IP address of eth2 by > default. > > > /sbin/iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 25 -j DNAT > > --to-destination 192.168.0.2 > > This looks alright. Do you have the br-nf code compiled? What's your kernel > version? > I have 2.5.59 (bridge support and ebtables turn on) kernel and bridgeing work well.
But i dont have a IP address on the bridge interface (nor eth0, eth1). I think this should be the problem, but in my case i can't assigned IP address on a bridge interface. Becouse the interface is in transit subnetwork with prefix /30 (it means only 4 addresses - network, server1 addres, server2 address and broadcast. There is no place for IP address for bridge interface). I cant enlarge this subnetwork. > -- > cheers, > Bart > > _______________________________________________ > Bridge mailing list > [EMAIL PROTECTED] > http://www.math.leidenuniv.nl/mailman/listinfo/bridge -- --- 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
