Changes

From SME Server
Jump to navigationJump to search
412 bytes added ,  11:29, 12 October 2013
Alternative iptables Approach
Line 27: Line 27:  
Works perfectly.
 
Works perfectly.
 
{{Note box|By using this approach your SME Server thinks that anything coming in from the outside world via port 2525 is in actual fact coming from within your LAN on port 25, so there is much less security applied.}}
 
{{Note box|By using this approach your SME Server thinks that anything coming in from the outside world via port 2525 is in actual fact coming from within your LAN on port 25, so there is much less security applied.}}
 +
 +
====Alternative iptables Approach====
 +
 +
I've added the following lines to /etc/rc.d/rc.local
 +
 +
''iptables -A PREROUTING -t nat -p tcp --dport 9993 -j REDIRECT --to-port 993
 +
iptables -A PREROUTING -t nat -p tcp --dport 4465 -j REDIRECT --to-port 465
 +
''
 +
 +
Cut-paste example for port 2525 redirection:
 +
 +
iptables -A PREROUTING -t nat -p tcp --dport 2525 -j REDIRECT --to-port 25
 +
 +
====Alternative iptables Approach====
    
===ISP is blocking port 80===
 
===ISP is blocking port 80===
22

edits

Navigation menu