Jump to content

Configuring shorewall rules for using proftp


emilioestevezz
 Share

Recommended Posts

Hi emilioestevezz (what a name man !)

 

The answer depends of your setup. It also depends on which computer the 'webbroswer' you are trying to access your ftp server is.

 

If you have 1 computer connected to net and you try to propftd on this computer for those on the net to access it then put the following in /etc/shorewall/rules and restart shorwall

 

ACCEPT net fw tcp 21 -

 

If your server have 2 ethernets cards and you want to access the ftp server from within your lan then it might be

 

ACCEPT masq fw tcp 21 -

 

or (if you don't use NAT)

 

ACCEPT loc fw tcp 21 -

 

If the ftp server is behind a router (running shorewall) then you'll have to forward port 21 (replace 'IP' by the IP of the computer running the ftp server behind the router).

 

DNAT net masq:IP tcp 21 -

 

don't forget to restart shorewall !!!!! As root type

 

service shorewall restart

 

Well, ... HTH

 

:P

 

MOttS

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...