How to Close Open Ports on Openfiler

Openfiler, a Linux distribution for network-attached storage, includes a Web-based administration interface that you can use to manage most settings. Openfiler’s Web interface doesn’t include a firewall page that can close open ports, but you can change these settings from a terminal. Openfiler, as a Linux distribution, includes the powerful Iptables firewall that can close ports, making them inaccessible from the network. The firewall settings are only accessible from the terminal.

Instructions

    • 1

      Access the Openfiler system’s terminal. You can sign in to the Openfiler Web administration page at “https://IP Address:446” in your Web browser, replacing “IP Address” with the IP address of the Openfiler system, click the “System” tab and click the “Secure Console” link. You can also use an SSH client or use the system’s local terminal.

    • 2

      Provide the Openfilre system’s root username and password. You can also log in as another user account and use the “su” command to switch to the root user account.

    • 3

      Type the following command at the terminal, replacing “1234” with the port you want to close. You can also specify a range of ports in the form “1000:1100”, which would block all ports from 1000 to 1100. You can also replace “all” with “tcp”, “udp” or “icmp” to block ports for a specific protocol.

      iptables -A INPUT -j DROP -p all --destination-port 1234

    • 4

      Press “Enter” to run the command. Iptables blocks the port.

    • 5

      Type “service iptables save” at the terminal and press “Enter” to save your firewall rules. If you omit this command, the port will be open again after you reboot.

    • 6

      Sign out of the terminal session by typing “exit” and pressing “Enter.”

Tips & Warnings

  • You can also close open ports by disabling services. Click the “Services” tab on the Web administration page to disable services

  • Openfiler is designed to function as a file server. Blocking ports may prevent access to Openfiler’s services.

Related Searches:

References

Resources

Comments

Related Ads

Featured