Best I can remember this late at night.. iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport 25 -j DNAT --to 192.168.0.2
----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 20, 2002 7:30 PM Subject: Forwarding smtp from remote to another box > > Hi Folks, > > I am very new (and I mean new) to iptables and need a fairly quick > solution to a minor hassle. > > I want remote smtp to be portforwarded to another local box but > internal smtp to goto the destination that it would do ie: > > net box is 192.168.0.1 (also get a dynip via ppp0) > mailbox is 192.168.0.2 > > ppp0 smtp should goto 192.168.0.2 other 192.168.0.0/24 smtp should be > allowed to travel freely. > > TIA. > > Sean > >
