Open ssh on vlan1 (wan)

Discussion in 'DD-WRT Firmware' started by tazthe, May 14, 2005.

  1. tazthe

    tazthe Network Guru Member

    Hi

    I search everywhere but not found how to to this.
    So i try by myself found how to definitly open port on wan.

    On web interface go to administration-->diagnostics
    Click run and enter in commands field:
    iptables -I INPUT 1 -p tcp --dport 22 -d ip_wan
    and click "save firewall"
    Where ip_wan is your public ip on internet

    Hope that will help someone.

    Bye


    I forgot, if you want to erase this rule do:
    iptables -d INPUT -p tcp --dport 22 -d ip_wan
     
  2. scatman

    scatman Network Guru Member

    I use the same rule for a while now but without the -d wan_ip flag as in dynamic IP enviroment saveing such a rule in startup will cause it to fail upon next restart when you have another IP.
    So the working rule is:
    ------------------------------------------
    iptables -I INPUT 1 -p tcp --dport 22
    ------------------------------------------
    Scatman
     
  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