Limit port forwarding to a specific external ip address

Report wireless and/or network connectivity problems in this forum.

Moderator: Moderators

Post Reply
elgros
Posts: 9
Joined: Mon Mar 25, 2013 7:30 pm

Limit port forwarding to a specific external ip address

Post 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

n0pin
Posts: 129
Joined: Thu Jan 09, 2014 6:39 am

Re: Limit port forwarding to a specific external ip address

Post 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.

elgros
Posts: 9
Joined: Mon Mar 25, 2013 7:30 pm

Re: Limit port forwarding to a specific external ip address

Post 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

Post Reply