What's new

Putty/SSH command to turn port forwarding on/off.

  • Thread starter Deleted member 27741
  • Start date
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

D

Deleted member 27741

Guest
I have what is probably an easy question that has already been answered. Is there a command to turn port forwarding on/off I can use through SSH? I am assuming it would be equivalent to clicking the yes/no radio buttons and apply on the port forwarding page in the gui.
 
Ok I think I may have found it. Looks like vts_enable_x=1 is port forwarding on and vts_enable_x=0 is port forwarding off. So log into the router via SSH and use the following commands:

nvram set vts_enable_x=1
nvram committ
service restart_firewall

That should do the trick to turn it on, to turn it off use the following:

nvram set vts_enable_x=0
nvram committ
service restart_firewall
 

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top