1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Open ssh on vlan1 (wan)

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

  1. tazthe

    tazthe Network Guru Member


    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.


    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

Share This Page