What's new
  • 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!

block port range for an ip by default / add & remove exceptions via commandline

heliosone

Regular Contributor
router : N66u / latest merlin firmware

how can I block all ports for one ip address (i.e. 192.168.1.33) by default,and then add exceptions.

specificly its an IOT device,which offers management via vnc and app.
For the vnc part I use a script (sent via ssh command beforehand) to enable/disable the port forward rule,so the vnc server is only reachable when I want it to.

but as I dont know how the app part works (port 80 I guess,via https,but not sure) ,I want to block all ports for this device by default,and then add/remove a rule via commandline. Which I then send via ssh ,before I connect to the device or want to use the app to manage it.

usually I get this done by myself&enough research beforehand,but I discovered that Im not that good with networking stuff especially iptables/rules :(

so any help is HIGHLY appreciated !!
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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