+ Post New Thread
Results 1 to 2 of 2
*nix Thread, restrinct access to certain ports on a server in Technical; Im running virtual box in headless mode, and the way it works is it starts a RDP server on a ...
  1. #1

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,476
    Thank Post
    1,305
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    198

    restrinct access to certain ports on a server

    Im running virtual box in headless mode, and the way it works is it starts a RDP server on a specified port for you to RDP to. I want to access these virtual machines remotely, so I have forwarded the relevent ports in the modem/router. However this offers no authentication, and will let anyone get straight to the Login screen. Im a bit worried that Ive forgot to lock the screen a couple of times and others have been able to get into my VMs. Logs from the router/modem show connecitons on the RDP ports. Im not too sure how to tell if they were just scans of if they were able to get right through to the desktop (anything i can check in either the guest windows logs or the host linux logs?)

    So what I want to do, is some sort of IP based restriction for these RDP ports.

    Do i just add the ports and the allowed IP(s) to hosts.allow ? Is it as simple as that? Or do I need to implement IP tables? I dont want to lock down the whole box as I will need to ssh/squid/openvpn in from any random IP

    Cheers

  2. #2

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,476
    Thank Post
    1,305
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    198
    Code:
    robert@oasis ~ $ sudo iptables -A INPUT -p tcp -s IP_ADDRESS_TO_ALLOW --dport 3388:3392 -j ACCEPT
    robert@oasis ~ $ sudo iptables -A INPUT -p tcp -s ANOTHER_IP_ADDRESS_TO_ALLOW --dport 3388:3392 -j ACCEPT
    robert@oasis ~ $ sudo iptables -A INPUT -p tcp --dport 3388:3392 -j DROP
    Thanks to powdarrmonkey for the above

SHARE:
+ Post New Thread

Similar Threads

  1. Active server ports
    By leco in forum How do you do....it?
    Replies: 16
    Last Post: 23rd January 2010, 05:34 PM
  2. opening ports on the server???
    By Admiral208 in forum Windows
    Replies: 14
    Last Post: 14th September 2008, 06:06 PM
  3. Why has our new server got two network ports
    By speckytecky in forum Wireless Networks
    Replies: 24
    Last Post: 11th June 2008, 12:24 PM
  4. Opening Ports for Citrix Access
    By AnnDroyd in forum Thin Client and Virtual Machines
    Replies: 8
    Last Post: 3rd October 2007, 07:59 AM
  5. Opening ports Server 2003 R2
    By edie209 in forum Windows
    Replies: 4
    Last Post: 23rd June 2006, 02:47 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •