|
|
|||||||
| About Us | Register | FAQ | Members List | Calendar | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Canadian Spaceman
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: May 2002
Location: Canada
Posts: 8,594
|
Linux Iptables
How could I block everything but 1.2.3.4 on port 3389 with iptables?
I am running dd-wrt on my router (linux based), and need to allow one ip, 1.2.3.4 (example). Everything else needs to be blocked on port 3389. This will restrict only my own ip address access to remote desktop connections. Thanks
__________________
|
|
|
|
|
|
#2 (permalink) |
|
Registered User
Join Date: Jun 2006
Location: Brazil
Posts: 4
|
>: )
Man... i must really be drunk lol... subscribed only to answer you haha
Hope you are a chick : D Try this: (hope you are talking about incoming traffic) iptables -A INPUT -p tcp -s 0/0 -d THE_ROUTER_IP --dport 3389 -j DROP iptables -I INPUT -p tcp -s 1.2.3.4 -d THE_ROUTER_IP --dport 3389 -j ACCEPT iptables -A INPUT -p udp -s 0/0 -d THE_ROUTER_IP --dport 3389 -j DROP iptables -I INPUT -p udp -s 1.2.3.4 -d THE_ROUTER_IP --dport 3389 -j ACCEPT that must be the job. THE_ROUTER_IP i think its pretty obvious, refers to the ip it is configured for the router : ) |
|
|
|
|
|
#3 (permalink) | |
|
Canadian Spaceman
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: May 2002
Location: Canada
Posts: 8,594
|
Quote:
__________________
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|