Confirmation on firewall scripts

Discussion in 'Tomato Firmware' started by Toonz, Feb 7, 2007.

  1. Toonz

    Toonz Network Guru Member

    I'm trying to block incoming connection from a single IP address. I just wanted to confirm which tab (init, firewall, wanup) to put it on.

    And is it in the form of:
    iptables -A INPUT -s x.x.x.x -j DROP?

    Also, how often are these applied? Like when I add it and click save, do I need to restart the router or anything for this to start working?

    Thanks in advance!
  2. digitalgeek

    digitalgeek Network Guru Member

    The scripts are applied once at startup. Inserting commands in these boxes save the information to NVRAM. You will need to reboot or telnet/ssh to your router and manually enter the command on your gateway device.

    Is there a domain name you can block or is it only available through an IP?

    If you can use the name enter it in access restriction
  3. Toonz

    Toonz Network Guru Member

    No worries. Cheers.

    Nah, I'm just seeing a few IP's trying to gain access to my SSH server, so figured I'd just block those specific IP's. :)
  4. Toonz

    Toonz Network Guru Member

    Edit: Double post
  5. digitalgeek

    digitalgeek Network Guru Member

    you could change your ssh to use a non-standard port like 522 or 1522 or something like that so that if they try to access it they will get nothing
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice