I've set up a webserver that also serves as a mail server, only problem is that i currently dont have access to the webgui (just telnet) and need to set up "prerouting" or forwarding of port 25 to 192.168.X.X.

I've tried

iptables -I FORWARD 1 -p tcp -s 192.168.X.X --dport 25 -j ACCEPT

However, when i list nat, iptables -t nat -L I find no entry. What is the correct command to forward port 25 to X and how do i delete the one that i added?

link|improve this question

43% accept rate
I'd suggest asking this over on Unix and Linux. Maybe a question like: unix.stackexchange.com/questions/1879/… has some hint as to what you are looking for. – jeffreypriebe Nov 21 '11 at 2:05
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.