Forwarding or whatever in shorewall

Discuss Networking
Post Reply
X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

Forwarding or whatever in shorewall

Post by X11 »

Okay the system on my network billy-nra.home (192.168.0.3) is running an FTP server.

How do I get shorewall to allow it so people on the internet can accses it?

Tux
guru
guru
Posts: 689
Joined: Wed Jan 08, 2003 10:40 am

Post by Tux »

Why not add the rule manually?

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

Port forwarding is like the first item in the shorewall FAQ:

http://www.shorewall.net/

I'm not at home right now so I can't use my config as an example but the forward line for Void's BS is something like:

Code: Select all

DNAT    net    dmz:10.10.1.2    tcp    http
Of course you probably don't have a DMZ so if your inside is called "loc" replace "dmz" above with "loc". Also instead of "tcp" and "http" you need to use the FTP ports and protocols. Mind you FTP is a little more difficult than http and other tcp based services. I'll get you my real line for the web service and I'll also come up with the FTP rules for you if you don't have it figured out by then.

X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

Post by X11 »

Oh cool, i wasnt sure if it was dnat or what mainly.

And yes, i should have read the FAQ, which I will.

X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

Post by X11 »

w00t

its working!

Post Reply