1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to make 253 OpenVPN clients

Discussion in 'Tomato Firmware' started by jbcdidgosir, Sep 6, 2013.

  1. jbcdidgosir

    jbcdidgosir Serious Server Member

    Server config:
    TAP
    Client address pool: 192.168.1.2-192.168.1.254

    On client sides:
    A router with OpenVPN client embedded. Disable the LAN DHCP so that PC can get IP from VPN server instead of OpenVPN client(router)'s LAN DHCP. So the configuration is:

    VPN server
    L-->VPN client-->PC
    L-->VPN client-->PC
    L-->VPN client-->PC
    L-->VPN client-->PC
    L-->VPN client-->PC
    .
    .
    .
    There is only one PC under each VPN client(router).

    Expected result:
    Only PC can be assigned an IP from VPN server, VPN client(router) won't be assigned an IP, so max PC: 253
    Actual result:
    IP is also assigned to VPN clients(router). So IP is occupied. max PC maybe only 126.

    Anyone knows how to solve it?
     
    Last edited: Sep 6, 2013
  2. Malitiacurt

    Malitiacurt Networkin' Nut Member

    Use the class A subnet.

    Realistically though your setup seems farfetched. You'd need at least 126 routers with openvpn installed on them with only one client each to start maxing out.

    If you just installed the openvpn program on your PC there wouldn't be 'double' the amount of ip's used. A tomato router running openvpn with clients connected to it (is basically acting like an advanced switch) is different than running the openvpn program directly on your PC.
     
  3. jbcdidgosir

    jbcdidgosir Serious Server Member

    Thank you for your reply.

    Yes, I need 126 routers, each of them configured as VPN client in the config page. And there is only one PC under each router(VPN client).

    "If you just installed the openvpn program on your PC there wouldn't be 'double' the amount of ip's used."
    Do you mean to install the VPN server on a PC in stead of a router?

    So do you mean:
    1. If VPN server is based on router, IP will be occupied by VPN client(router). So max PC: 126
    2. If VPN server is installed on PC, IP won't be occupied by VPN client(router). VPN client(router) act like an advanced switch. So max PC: 253

    Right?
     
  4. Malitiacurt

    Malitiacurt Networkin' Nut Member

    Yes you'll have all 253, but you don't need a vpn router if you install the openvpn program on your pc.

    When you install openvpn on a PC (Assuming http://openvpn.net/index.php/open-source/downloads.html), you just setup the correct config files and the openvpn program acts as a client connecting directly to your openvpn server.

    If you really want to use a router per client in your setup and don't have enough IP's, use a class A or even B subnet.

    ~Edit. But you should really explain what you're trying to setup here. Eg. Are your clients not allowed to have internet access if the vpn connection is not available?
     
    Last edited: Sep 6, 2013
  5. jbcdidgosir

    jbcdidgosir Serious Server Member

    Yes, I know that if VPN server is installed on PC, no VPN router needed on server side. In this case, will the VPN client(router) still waste IP address?

    Actually, the equipment under VPN client(router) is not a PC. It's a PLC (Programmable Logic Controller, used in industry control), which doesn't support VPN client. That's the reason why I have to use VPN client(router) for each PLC. When I need to download application to these PLCs, they MUST in the same LAN as server. Just like playing a LAN game, like starcraft, warcraft... So class A or B subnet may not work properly. That's the reason why I must make them in the 192.168.1.X and no IP address can be wasted, occupied by VPN client(router).
     

Share This Page