This is a two part question. I want to open a port to allow a work colleague access a server during work hours only, so I want to create a cron that will open and close the port at the beginning and end of work.
What iptable syntax will show me the port forward I set up via the GUI? I tried using iptable -L but don’t see it but I know it is there as I can access the server remotely.
The second question is how to I go about deleting the rule?
I guess I have a third question, is there another command I got to run to add then later delete a firewall rule?
Apologies for the noob questions as I am not well versed on iptable and don’t want to mess anything up.
Thanks in advance.
What iptable syntax will show me the port forward I set up via the GUI? I tried using iptable -L but don’t see it but I know it is there as I can access the server remotely.
The second question is how to I go about deleting the rule?
I guess I have a third question, is there another command I got to run to add then later delete a firewall rule?
Apologies for the noob questions as I am not well versed on iptable and don’t want to mess anything up.
Thanks in advance.