Results 1 to 3 of 3

Thread: Access to a network behind static IP

  1. #1
    Join Date
    May 2007
    Beans
    80

    Access to a network behind static IP

    Hello
    I've asked my ISP for a static IP address.I can't figure out how set the network so from outside I can access the server. I've configured interfaces as

    Code:
    auto eth0
    iface eth0 inet static
            address 45.45.136.34
            netmask 255.255.255.0
            gateway 46.14.187.1
    Can you please tell me how can I configure my computer and network so I can localise the server from the outside?

    Thanks
    Ali

  2. #2
    Join Date
    Jun 2011
    Location
    The Shadow Gallery
    Beans
    6,744

    Re: Access to a network behind static IP

    Quote Originally Posted by aliov_85 View Post
    Hello
    I've asked my ISP for a static IP address.I can't figure out how set the network so from outside I can access the server. I've configured interfaces as

    Code:
    auto eth0
    iface eth0 inet static
            address 45.45.136.34
            netmask 255.255.255.0
            gateway 46.14.187.1
    Can you please tell me how can I configure my computer and network so I can localise the server from the outside?

    Thanks
    Ali
    your static IP address is not for inside your network, you apply it to your Internet facing interface, probably your router ?

    Then you access your WAN static IP and have your router forward to your internal machine LAN IP.

    depending on your setup
    Backtrack - Giving machine guns to monkeys since 2006
    Kali-Linux - Adding a grenade launcher to the machine guns since 2013

  3. #3
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    7,790
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Access to a network behind static IP

    First, for security reasons I would advice you to NOT post your real static IP. Just use something like xx.xx.xx.xx if you need to put an example.

    As for the configuration: as haqking is pointing out, if you are behind a router (not a modem), the settings have to be done in the router.

    You really need to get support from your ISP to learn how to set things up. You may not need to do anything (in case they use some sort of a DHCP reservation).

    After you have that sorted out, in order to access your server you need to:
    • Set a LAN static IP for the server (like 192.168.1.2).
    • Forward the ports of the services you want to access in your router to your server.
    • Open the necessary ports in your firewall/iptables (in case you are running them).

    Does that help?
    Regards.

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
  •