How to automate port open/close on a clearspot router
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
uPnP is device setup protocols. The device is set up on USB0. This is not about setting up the device but telling the device to perform one of its functions. Automatically. (I don't use wireless - Two of my neighbors have routers that have a stronger signal strength in my apartment than my router.) What I am looking for is a tool/program to login to the router. Walk the web pages to open a port and set it to forward to a port on my machine. Then reverse the process when I am done. I don't expect a ready made program, but there should be a way to script it. I am looking for suggestions.
You have to log in, with a password. Otherwise anyone could take over your router and manipulate your ports. It may be inconvenient, but it's essential for security.
Ah, no. A uPnP enabled router (along with aware applications) does exactly what you are asking.
Quote:
NAT traversal
One solution for NAT traversal, called the Internet Gateway Device Protocol (IGD Protocol), is implemented via UPnP. Many routers and firewalls expose themselves as Internet Gateway Devices, allowing any local UPnP control point to perform a variety of actions, including retrieving the external IP address of the device, enumerate existing port mappings, and add or remove port mappings. By adding a port mapping, a UPnP controller behind the IGD can enable traversal of the IGD from an external address to an internal client.
Last edited by descendant_command; 07-18-2014 at 04:49 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.