Linux Scroll

Just another WordPress.com site

ISP block port 25. Redirect port 587 to port 25 in linux firewall.

For Shorewall:

$ vi /etc/shorewall/rules

DNAT net loc:%Local IP%:25 tcp 587 - %Public IP%

For IPTABLES:

$ iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 587 -j REDIRECT --to-ports 25

$ /etc/init.d/iptables save
$ /etc/init.d/iptables restart
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: