Changes

From SME Server
Jump to navigationJump to search
2 bytes removed ,  10:32, 12 October 2013
m
no edit summary
Line 32: Line 32:  
I've added the following lines to /etc/rc.d/rc.local
 
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 9993 -j REDIRECT --to-port 993
iptables -A PREROUTING -t nat -p tcp --dport 4465 -j REDIRECT --to-port 465
+
iptables -A PREROUTING -t nat -p tcp --dport 4465 -j REDIRECT --to-port 465
''
      
Cut-paste example for port 2525 redirection:
 
Cut-paste example for port 2525 redirection:
   −
iptables -A PREROUTING -t nat -p tcp --dport 2525 -j REDIRECT --to-port 25
+
iptables -A PREROUTING -t nat -p tcp --dport 2525 -j REDIRECT --to-port 25
    
====Alternative iptables Approach====
 
====Alternative iptables Approach====
22

edits

Navigation menu