Forwarding or whatever in shorewall

Discuss Networking

Forwarding or whatever in shorewall

Postby X11 » Tue Dec 16, 2003 11:57 pm

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?
X11
guru
guru
 
Posts: 674
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia

Postby Tux » Wed Dec 17, 2003 6:34 am

Why not add the rule manually?
Tux
guru
guru
 
Posts: 689
Joined: Wed Jan 08, 2003 10:40 am

Postby Void Main » Wed Dec 17, 2003 8:22 am

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.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby X11 » Wed Dec 17, 2003 11:58 am

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: 674
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia

Postby X11 » Wed Dec 17, 2003 12:46 pm

w00t

its working!
X11
guru
guru
 
Posts: 674
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia


Return to Networking

Who is online

Users browsing this forum: No registered users and 2 guests