Page 1 of 1

Limit port forwarding to a specific external ip address

Posted: Thu Jun 05, 2014 9:08 pm
by elgros
Hi all

Is there a way to limit port forwarding and Remote Web Admin Access to a specific external ip address. I would like to manage my router and rdp from my work ip to my home ip through port 3389. Do I need to create a White list or Access restriction? Can you give me an example, I'm not certain how to do it.

Thanks

Denis

Re: Limit port forwarding to a specific external ip address

Posted: Fri Jun 06, 2014 3:45 am
by n0pin
You could use iptables like that:

Code: Select all

iptables -A INPUT -p tcp --dport 8000 -s 1.2.3.4 -j ACCEPT
iptables -A INPUT -p tcp --dport 8000 -j DROP
Edit them to your needs and put them in /etc/firewall.user.

Re: Limit port forwarding to a specific external ip address

Posted: Fri Jun 06, 2014 9:15 am
by elgros
Ok thanks n0pin for the info. I was hoping I could do it with the GUI because I don't know how to enter those commands. If its the only way then I will nevermind or I will find a secure remote control software.

Thank you

Denis