Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Block / Allow IP Addresses to FTP (ubuntu / vsftpd)

  • 23-11-2012 02:02PM
    #1
    Registered Users, Registered Users 2 Posts: 1,657 ✭✭✭


    Hi folks

    The server admin recently at my request blocked FTP access for all but a chosen few IP addresses.

    However he's gone off on holidays and we need a few more addresses to be allowed. Just wondering is there any way I can do it from the command line?

    I have tried

    Searching for .ftpaccess files (couldn't find any except in an obscure directory)

    Using iptables (I can't access from the IP addresses I have entered there, and it doesn't list the ones that he specified)

    Doing ufw show raw (shows only the addresses I allowed myself using iptables)
    and ufw allow from ... (still no access)

    etc/vsftpd.conf (doesn't have listen_address specified)

    etc/hosts.allow (empty except for introductory comments)


    None of these reveals the addresses he already allowed through.

    Is there anywhere else I can be looking?


Comments

  • Registered Users, Registered Users 2, Paid Member Posts: 2,427 ✭✭✭ressem


    Have you ruled out the other network equipment, which would be my first choice to place IP based access rules?

    Is the setup designed to allow access from only a small group of internal IP addresses / machines on your LAN? In which case there might be VLANS on the switches /routers.

    Or are the existing allowed IP addresses of an external IP type? If so there's the possibility that they are blocked on a main office firewall instead.

    Is the ftp server connected to the LAN directly or to a DMZ of the main firewall?


Advertisement