>From the comments in /etc/shorewall/rules: (v1.4.7c, take a look, they are
good...)
#Example: Redirect all locally-originating www connection requests to
# port 3128 on the firewall (Squid running on the firewall
# system) except when the destination address is
192.168.2.2
#
# #ACTION SOURCE DEST PROTO DEST SOURCE
ORIGINAL RATE USER
# # PORT PORT(S)
DEST LIMIT SET
# REDIRECT loc 3128 tcp www -
!192.168.2.2
So you want: (I tested this for fun)
# Redirect internet based connections on port 10022 to port 22 on the firewall
system...
REDIRECT net 22 tcp 10022
Please read Tom''s superb documentation, with search and everything,
http://www.shorewall.net
Alex Martin
http://www.rettc.com
----- Original Message -----
From: "Bart Verstraete" <bartverstraete@pandora.be>
To: <shorewall-users@lists.shorewall.net>
Sent: Tuesday, November 25, 2003 1:30 AM
Subject: [Shorewall-users] Route one port to another
> Hi how would the following be done?
> I want to connect via ssh to my shorewall box so I tought of the
> following, but I am completely new to this fw so here it go:
>
> I wanne connect to port 10022 en the firewall has to route it to 22
> because my isp don''t allow incomming traffic under port 1024 so
pls help me.
>
> grts Bartt
>
> _______________________________________________
> Shorewall-users mailing list
> Post: Shorewall-users@lists.shorewall.net
> Subscribe/Unsubscribe:
https://lists.shorewall.net/mailman/listinfo/shorewall-users> Support: http://www.shorewall.net/support.htm
> FAQ: http://www.shorewall.net/FAQ.htm
>