From 1be510f9529cb082f802408b472a77d074b394c0 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Sun, 14 Apr 2013 13:46:12 +0000 Subject: Add zarb MLs html archives --- zarb-ml/mageia-discuss/2012-August/008637.html | 89 ++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 zarb-ml/mageia-discuss/2012-August/008637.html (limited to 'zarb-ml/mageia-discuss/2012-August/008637.html') diff --git a/zarb-ml/mageia-discuss/2012-August/008637.html b/zarb-ml/mageia-discuss/2012-August/008637.html new file mode 100644 index 000000000..3736320e0 --- /dev/null +++ b/zarb-ml/mageia-discuss/2012-August/008637.html @@ -0,0 +1,89 @@ + + + + [Mageia-discuss] Setting up a port forward + + + + + + + + + +

[Mageia-discuss] Setting up a port forward

+ Olav Vitters + olav at vitters.nl +
+ Fri Aug 31 14:04:48 CEST 2012 +

+
+ +
On Fri, Aug 31, 2012 at 12:41:37PM +0100, Anne Wilson wrote:
+> I need to set up ssh in such a way that it comes in on a high port,
+> say 5122 which is forwarded to 22 - or otherwise to have ssh listen on
+> 5122.  I assume this is beyond MCC, and will entail editing iptables.
+>  This is not something I'm familiar with.  Can someone please advise me?
+
+I have in /etc/sysconfig/iptables:
+# 1;3S
+# Generated by iptables-save v1.3.3 on Wed Nov 16 17:30:45 2005
+*nat
+:PREROUTING ACCEPT [0:0]
+:POSTROUTING ACCEPT [0:0]
+:OUTPUT ACCEPT [0:0]
+-A PREROUTING -i eth0 -p tcp -m tcp --dport 443 -j REDIRECT --to-ports 22
+-A PREROUTING -i eth0 -p tcp -m tcp --dport 53 -j REDIRECT --to-ports 22
+COMMIT
+# Completed on Wed Nov 16 17:30:45 2005
+# Generated by iptables-save v1.3.3 on Wed Nov 16 17:30:45 2005
+
+
+
+or as iptables command:
+iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp \
+         --dport 443 -j REDIRECT --to-ports 22
+
+that redirect tcp port 443 to 22 (loads of proxies allow you to CONNECT
+to 443, but not to 22).
+
+-- 
+Regards,
+Olav
+
+ + + + + +
+

+ +
+More information about the Mageia-discuss +mailing list
+ -- cgit v1.2.1