smpaine / PortKnocker

This Android application allows people (who are running a port knock daemon) to send TCP or UDP packets to the specified ports. Based off the other app PortKnocking, but faster.
17 stars 2 forks source link

Feature request: Knock on IP change #4

Open mogul opened 12 years ago

mogul commented 12 years ago

Thanks for making PortKnocker available both free and open source. I have a feature request.

There are some Android apps (eg aNag) which regularly want to contact a host which may be behind a firewall (eg your Nagios server at work). Port knocking is a great way to tell that firewall who you are and get it to allow access from your IP.

You want to run apps like aNag all the time so they can give you alerts, so they're constantly usable, etc. but you can't do that because your phone's IP may change a lot and you will lose access until you re-knock.

THE FEATURE REQUEST: It'd be handy to mark a knock entry to indicate it should re-knock every time your phone's IP changes. So effectively your knocked access follows you around as your phone hops networks.

If you're looking for a value-add feature that you can charge for over and above the features in your free version, I think this might be a good candidate. (Similarly, being able to set what app is launched after a knock would be something worth charging for.)

yoavw commented 12 years ago

I needed the same feature and needed it quickly so I added it to the code. I have a patch that adds a checkbox to each entry, allowing you to make it persistent. Persistent entries are knocked automatically after a reboot, and again every time the IP changes.

My code is unclean, as I had less than an hour to do it. If anyone wants to integrate it cleanly into PortKnocker, I'll be glad to send a patch against the current code base.

spinza commented 11 years ago

I like the idea as well as a feature to reknock every x minutes.