>If someone could tell me how to access ftp running on port other than 21 (like
>8654), this will help me a lot !

This is pretty simple:

        - Edit the /etc/services file and change ftp/21 to whatever port you want
          say 8654.  Do NOT renumber port 20.

        - Run a "ps aux | grep inetd" and get the process ID (PID) of ident

        - Run "kill -HUP #" where  # is the PID

Thats it.. it will reload Inetd and then respond to FTP requests on port 8654

NOTE:  Many firewalls out there expect to see FTP traffic on ports < 1024.  
Because of this, you will find that FTP might not work properly.


>Also i've seen David A. Ranch saying IPAUTOFW sucks. But I'm using it because
>I need forwarding a great number of ports (2000-4000) in order to play most
>games. Anyone knows another way to do this ?

This is true. :)  The solution is to use a simple loop in your
/etc/rc.d/rc.firewall
ruleset.  Say you want to portfw ICQ ports 2000-2020 and:

        $extip is set as your external IP address
        $fwip is set as your to-be-forwarded address

--

i=2000
while [ $i -lt 2021 ]
do
 /usr/local/sbin/ipportfw -A -t$extip/$i -R $fwip/$i
 export i=`expr $i + 1`
done

--

I beleive this can be done cleaner in a FOR loop but I just whipped this out.

--David
.----------------------------------------------------------------------------.
|  David A. Ranch - Linux/Networking/PC hardware         [EMAIL PROTECTED]  |
!----                                                                    ----!
`----- For more detailed info, see http://www.ecst.csuchico.edu/~dranch -----'


_______________________________________________
Masq maillist  -  [EMAIL PROTECTED]
http://tiffany.indyramp.com/mailman/listinfo/masq
Admin requests can be handled by web (above) or [EMAIL PROTECTED]

Reply via email to