Changes
Jump to navigation
Jump to search
← Older edit
PortRedirect
(view source)
Revision as of 10:32, 12 October 2013
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====
Elmarconi
22
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Koozali SME Server
Main Page
Welcome
Releases
Testimonials
Documentation
SME Server FAQ
Volunteering
Commercial Support
Recent activities
Dashboard
Recent wiki changes
Recent bug changes
Unread Forum posts
Koozali resources
Contribs
How-To's
Forums
Bugzilla
Mailing Lists
Translations
Download
Koozali SME Server wiki
Wiki statistics
Wiki categories
Wiki Help
Koozali Wiki Help
Tools
Special pages
Printable version