Home > Windows > Open rdesktop port 3389 in firewall via command line

Open rdesktop port 3389 in firewall via command line



netsh advfirewall firewall add rule name="Open Port 3389" dir=in action=allow protocol=TCP localport=3389

In order to block remote access to a particular service(say mssql, port 1433) from an ip 22.75.175.213 , use the following from command line.



netsh advfirewall firewall add rule name="Block mssql attack ips" dir=in action=block protocol=TCP localport=1433 remoteip=22.75.175.213

Advertisements
Categories: Windows
  1. February 7, 2013 at 5:26 am

    “Open rdesktop port 3389 in firewall via command line | jackal777”
    definitely got me personally simply hooked on ur blog! I
    reallywill wind up being returning a whole lot more
    frequently. Thanks a lot -Waldo

  2. May 3, 2013 at 1:56 am

    Hmm is anyone else having problems with the pictures on this blog loading?
    I’m trying to determine if its a problem on my end or if it’s the blog.
    Any feed-back would be greatly appreciated.

  3. November 18, 2013 at 12:45 pm

    Thanks for one’s marvelous posting! I really enjoyed reading it, you
    will be a great author.I will always bookmark your blog and
    may come back later on. I want to encourage that you continue your great work, have a nice
    morning!

  4. February 16, 2014 at 2:31 pm

    It’s hard to come by educated people on this subject, however, you seem
    like you know what you’re talking about!
    Thanks

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: