Results 1 to 4 of 4

Thread: Open iptables port to incoming port from a dynamic IP Address

  1. #1
    Join Date
    Apr 2015
    Beans
    5

    Open iptables port to incoming port from a dynamic IP Address

    Hi

    Ok, here's the scenario.

    You have an Ubuntu Server on a dedicate root server on the Internet somewhere with a public IP address, at the backend home office you have a small LAN connected to the Internet using a DrayTek Vigor Router.
    The ISP __ONLY__ provides dynamic IPs and switching ISP for static IPs isn't possible.

    You want to use iptables on the Ubuntu server to lock things down but open up SSH to the home network, but how would you do this with a dynamic IP Address?

    Options? Discuss??

  2. #2
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: Open iptables port to incoming port from a dynamic IP Address

    Do the DHCP-supplied addresses all fall into a specific IP subnet? You could permit the subnet to connect via SSH. That would be vulnerable to a rogue host in that subnet, but you still have the usual authentication peocesses as well. Shared keys and no root logins are effective there.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  3. #3
    Join Date
    Apr 2015
    Beans
    5

    Re: Open iptables port to incoming port from a dynamic IP Address

    Hi. They are on the same subnet but its a large public range of addresses.

    Any other ideas??

  4. #4
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: Open iptables port to incoming port from a dynamic IP Address

    I'm not talking about the ISP's entire network. Usually most large ISPs have local subnets and local DHCP servers. It's quite possible your addresses come from a pool of just a couple thousand or even fewer.

    How often does your address change? I've had the same address from my ISP, Verizon FiOS, for months now. Have you identified any pattern in the addresses you get? Are the first two "octets" (e.g., 192.168 in 192.168.1.0/24) always the same? How about the third?
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

Tags for this Thread

Bookmarks

Posting Permissions

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