how to give each domain its own ip

Discussion in 'Installation/Configuration' started by steve1084, Jul 25, 2007.

  1. steve1084

    steve1084 New Member

    Hi Tiil
    Hi Falco

    Hi everyone

    Just wondering if its possible to use bridging or some sort of dhcp service to give each domain its own ip address on the router somthing like the way vmware is able to generate its own bridged connections to the router, only do it for each domain in ispconfig.

    Current setup is debian etch with ispconfig and suphp.

    This would I think provide a solution to a number of issues such as the inability to view a domain via the ip address and the limitations of ssl.

    Just wondering if anyone has done this and how it might be done.

    Thanks
    Steve:eek:
     
  2. falko

    falko Super Moderator ISPConfig Developer

    The problem is that your router (most probably) can forward one port (e.g. 80) to just one destination IP address, not multiple ones.
     
  3. steve1084

    steve1084 New Member

    I use a draytek vigor 2800 series modem

    Dont know about that. I use a draytek vigor 2800 series modem

    I can setup multiple forwarding for any port or ip in the config so I believe it can do this.

    there is a live demo of the config consol available here http://www.draytek.com.au/demo/Vigor2800/

    maybe if I can first try with one bridge and see if it works but I just dont know what I need to do to setup the bridge.

    Thanks
    Steve:)
     
  4. larwilliams

    larwilliams New Member

    The issue of not being able to view a site by it's IP would only be solved if you had an unique IP for each domain and it was assigned to your server.

    Otherwise, you're SOA. The moment an IP is used by more than one domain, viewing by IP becomes difficult (if not impossible).
     
  5. steve1084

    steve1084 New Member

    It would be good if I could allow Ispconfig to use more than one local IP address

    Yes agreed if your talking remote but I'm talking local. It would be good if I could allow Ispconfig to use more than one local IP address on the router even if its only 2 or three would still be a vast improvement over only using one and thats why I thought maybe a bridge or several bridges might allow this capability depending on the routers ability to forward the ip and ports. So it probably wouldn't work for everyone.

    I just don't know if anyone has tried it and need some basic info on how I might go about setting it up in order to try it and see if there is any merit to my thoughts:)

    Thanks
    Steve
     
  6. falko

    falko Super Moderator ISPConfig Developer

    If you're talking about your local network, then the router's out of the game.
    You could test your sites using the IP address if
    a) there's only one site per IP address, and
    b) you disable the shared-IP vhost in Vhosts_ispconfig.conf.
     
  7. steve1084

    steve1084 New Member

    I don't understand why this is so hard.
    Ispconfig allows me to place extra local ip addresses into its config that I can then use when setting up a site. Correct?

    I Have a router that can support I believe up to 4 ip and port forwarding setups?

    My thought was that If I placed a network bridge in the Linux network settings that made an extra connection(s) to the router it would allow me to tell ispconfig to use that ip for xyz site then this would allow for a number of additional features to be used such as ssl or testing or direct ip local lookup etc. OK so direct ip access would be out but what about for ssl purposes.

    If its not possible to do any of these things then why are these options available in ispconfig if not for this exact purpose?:confused:

    Am I chasing my tail or is there something in what I am thinking:)

    Thanks
    Steve
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig creates name based vhosts and not IP based vhosts. This means that you can access every vhost only by its domain and not IP address. ISPConfig supports multiple IP addresses, as every SSL enabled website must have its own unique IP address.
     
  9. steve1084

    steve1084 New Member

    Bobs your uncle It works


    OK I agree with everything your all saying. But nobody has stated if my idea to have bridges will work for any one of the numerous things I have suggested. and certainly no info has been forthcoming about how to setup and test my theory.:rolleyes:


    So to test my theory I place a second conventional lan card into my box and configured ispconfig to use it and Bobs your uncle It works.

    I can now have two sites with ssl certs from the one box without hassle

    I placed ip address in the ispconfig management, then changed ip address for the site, then changed ip address in the dns management page, several entries required changing.

    If I can do it with a physical card then I see no reason why it cant be done with a software bridge that behaves like a physical card.

    Im not sure yet what will limit the number of bridges I can use, I suspect I may be limited to 4 but will need to test this. I also understand that not all routers are equal and some will not support this and others will allow many more.

    So all I need now is to figure out whats the best way to make a couple of bridges that act like lan cards and test what my limits are.

    This certainly increases the flexibility and use of ispconfig for me as I can now have more than one ssl configured site per server and thats more important than being able to visit a site via the ip address.

    Thanks
    Steve:)
     
    Last edited: Jul 30, 2007

Share This Page