[Shorewall-users] Redirecting ports

Tom Eastep teastep@shorewall.net
Fri, 19 Apr 2002 17:17:00 -0700 (Pacific Daylight Time)


On Fri, 19 Apr 2002, Aaron Axelsen wrote:

> Why the "::"??
>
> Is that only needed to redirect locally?
>

Yes.

> I have rules like
> ACCEPT	net	loc:192.168.1.1:5880	tcp	5880 - all
>
> And those work.
>

Yep -- but 192.168.1.1 isn't an IP on the firewall, I'm betting...

-Tom

> ---
> Aaron Axelsen
> AIM: AAAK2
> Email: axelseaa@amadmax.com
> URL: www.amadmax.com
>
> "It said, ""Insert disk #3,"" but only two will fit!"
> "One picture is worth 128K words."
>
>
> -----Original Message-----
> From: Tom Eastep [mailto:teastep@shorewall.net]
> Sent: Friday, April 19, 2002 7:12 PM
> To: Aaron Axelsen
> Cc: 'Jonathan B. Bayer'; Shorewall-users@shorewall.net
> Subject: RE: [Shorewall-users] Redirecting ports
>
>
> On Fri, 19 Apr 2002, Aaron Axelsen wrote:
>
> > Try this:
> > ACCEPT	net	$FW:25	tcp	26 - all
> >
>
> You need:
>
> ACCEPT	net	$FW::25	tcp	26	-	all
>
> That redirects port 26->port 25.
>
> -Tom
> --
> Tom Eastep    \ Shorewall - iptables made easy
> AIM: tmeastep  \ http://www.shorewall.net
> ICQ: #60745924  \ teastep@shorewall.net
>
>
>

--
Tom Eastep    \ Shorewall - iptables made easy
AIM: tmeastep  \ http://www.shorewall.net
ICQ: #60745924  \ teastep@shorewall.net