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

router port to WAN

Discussion in 'Tomato Firmware' started by x-demon, Apr 28, 2009.

  1. x-demon

    x-demon Addicted to LI Member

    How i can use iptables for adding router's port to WAN access? I think it something like
    Code:
    iptables -I INPUT 1 -p udp --dport 161
    on forums i saw that there is also "-j logaccess", but tomato says that -j is invalid option... so, what i must do?
     
  2. x-demon

    x-demon Addicted to LI Member

    Code:
    iptables -I INPUT 1 -p udp --dport 161 -j ACCEPT
    - no success =(
     
  3. michse

    michse Addicted to LI Member

    hi,

    "iptables -I INPUT 1 -p..." the "1" is wrong I think.

    iptables -I INPUT -i vlan1 -p udp --dport 161 -j ACCEPT or

    iptables -I INPUT -i ppp0 -p udp --dport 161 -j ACCEPT should work

    michse
     
  4. x-demon

    x-demon Addicted to LI Member

    It doesnt work too. Pppoe connection, if it can help.
     
  5. michse

    michse Addicted to LI Member

    I don't understand your question. what do you want to do?
    port 161 is snmp. do you want to reach a snmp daemon on your router? your iptables rule looks like so.
    michse
     
  6. x-demon

    x-demon Addicted to LI Member

    Sorry me! All works as it must works. Yes, i opened snmp to wan for one ip, where is cacti installed. Cacti not working with tomato atm, but i can access cnmp with snmpwalk.
     

Share This Page