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

How to make us a LAN network

Discussion in 'Tomato Firmware' started by jbcdidgosir, Aug 10, 2013.

  1. jbcdidgosir

    jbcdidgosir Serious Server Member

    I have an OpenVPN server in my WRT54GS. My friend uses the OpenVPN client based on windows to connect my network. Then we can play LAN games, such as starcraft.
    Another friend, he doesn't know how to config the OpenVPN. So I bought a WRT54GS and config the OpenVPN client in this router. Now the problem is: his router is connected to my network--OK. But his PC is still under his router, so we couldn't be in a same LAN. Any one has any idea to solve this problem?

    Updated on Aug. 12th:

    The OpenVPN server in my router is TAP, DHCP for LAN ranges from 10.10.10.2-100. DHCP for OpenVPN users range from 10.10.10.101-10.10.10.150. My friend's router can get an WAN IP from PPPoE. His LAN IP ranges from 192.168.1.2-192.168.1.100. His OpenVPN client in router get a valid IP: 10.10.10.101

    Now the problem is: His PC couldn't get an IP like 10.10.10.X. It's still an IP of 192.168.1.X

    As for the port forward, actually my friend lives in a dormitory and more than 3 guys connected to his router and want to join the game as well. So port forward is not feasible. And the protocol of the game is IPX.

    Even making IP in the same IP range forcibly. I still have some concern in the following model:

    1. Upper router's LAN IP is 10.10.10.1 and DHCP from 10.10.10.2-100
    2. Lower router's WAN connected to upper router's LAN and get IP from upper router's DHCP. Lower router's LAN is 10.10.10.101 and DHCP from 10.10.10.102-200
    3. My PC connected to upper router's LAN and another PC connected to lower router's LAN. Both of them can get an IP of 10.10.10.X. But can they create a game?
     
    Last edited: Aug 12, 2013
  2. Malitiacurt

    Malitiacurt Networkin' Nut Member

    For LAN gaming you'll likely need to configure the openvpn as TAP, and have your router use part of the subnet eg 192.168.1.1-150, and his using the remaining 192.168.1.151-254.
     
  3. jbcdidgosir

    jbcdidgosir Serious Server Member

    Thanks! But even PC is configured to 192.168.1.151-254, this IP is still gotten from the DHCP server of his router, not my router. Anyway, his PC is still under the gateway of his router. The broadcast from my router couldn't be delivered to his PC. What's your opinion?

    Thank you once more!
     
  4. Almaz

    Almaz Serious Server Member

    It looks like you guys having problem with subnet and that's why it might now work. Since I don't know your setup but you can try the following. Make sure server set to tap and clients as well. Set your router as 192.168.3.1 255.255.255.0 with openvpn and set your friends routers as 192.168.2.1 and 192.168.4.1. Your friend have to forward port from his router to OpenVpn Client router.

    You might as well setup a static IP on your router for OpenVpn users, just put in your OpenVpn Custom Config.
    server-bridge 192.168.3.1 255.255.255.0 192.168.3.15 192.168.3.20
     
  5. Malitiacurt

    Malitiacurt Networkin' Nut Member

    That's the correct behaviour for TAP. Clients on router of the openvpn server and openvpn client get their IP's from their respective gateways, not from the openvpn server.

    Have you tried having your friend connect to your gaming server instead of having the server broadcast? It's probably the behaviour of the openvpn server not to relay (spam) all broadcast messages on the LAN to openvpn clients, even if it's TAP.
     
  6. kthaddock

    kthaddock Network Guru Member

  7. jbcdidgosir

    jbcdidgosir Serious Server Member


    Thank you for your reply.

    The OpenVPN server in my router is TAP and DHCP for OpenVPN users range from 10.10.10.100-10.10.10.150. My friend's router can get an WAN IP from PPPoE. His LAN IP ranges from 192.168.1.2-192.168.1.100. His OpenVPN client in router get a valid IP: 10.10.10.100

    Now the problem is: His PC couldn't get an IP like 10.10.10.X. It's still an IP of 192.168.1.X

    As for the port forward you mentioned, actually my friend lives in a dormitory and more than 3 guys connected to his router and want to join the game as well. So port forward is not feasible. And the protocol of the game is IPX.

    Thank you once again. Please give me more instructions if you have any more idea.
     
  8. jbcdidgosir

    jbcdidgosir Serious Server Member

    This is the configuration of my router's LAN setting.
    1.JPG
    So I can get an IP: 10.10.10.2

    This is the configuration of my router's OpenVPN server's setting.
    2.JPG

    So my friend's OpenVPN client(in his router) can get an IP: 10.10.10.100. But his PC can only get an IP: 192.168.1.2 from his router due to his router's LAN setting.

    Because we are not in the same LAN, game couldn't be created.

    Please give me more instructions if you have any idea. Thank you once more.
     
  9. Malitiacurt

    Malitiacurt Networkin' Nut Member

    His router's LAN needs to hand out IP's in the range you listed under the openvpn server->client address pool (10.10.10.100-150) and his router's LAN IP needs to not conflict with yours (eg. use something in the 10.10.10.151-254 range since your using 10.10.10.1-99).
     
  10. jbcdidgosir

    jbcdidgosir Serious Server Member

    I understand your suggestion that to make IP in the same IP range forcibly. But I can give you an example to explain my concern:

    1. Upper router's LAN IP is 10.10.10.1 and DHCP from 10.10.10.2-100
    2. Lower router's WAN connected to upper router's LAN and get IP from upper router's DHCP. Lower router's LAN is 10.10.10.101 and DHCP from 10.10.10.102-200
    3. My PC connected to upper router's LAN and another PC connected to lower router's LAN. Both of them can get an IP of 10.10.10.X. But can they create a game?

    Please give me more instructions if you have any idea. Thank you once more.
     
  11. Malitiacurt

    Malitiacurt Networkin' Nut Member

    Not sure what your question is. The example you provided is slightly different from the openvpn setup. What is your lower router's WAN IP? Assuming it is the same as lower router LAN IP, anything hosted on 10.10.10.102-200 shouldn't be seen by the clients on the upper router because 'lower router' clients are behind a NAT.

    However, if you set it up as mentioned using openvpn, you shouldn't get this problem because the connection between the 'lower router' to the 'upper router' is through openvpn client-server on the virtual LAN side.
     
  12. jbcdidgosir

    jbcdidgosir Serious Server Member

    OK. I can understand the difference between openvpn client and lower router. The key difference is NAT. Because I can receive my router today. I'll have a try and give you feedback. Thank you very much!
     
  13. Almaz

    Almaz Serious Server Member

    It's a little bit more complicated without having access to the router and troubleshoot but I have a simple solution for you. Instead of setting up a router as VPN Client which is not a very good idea. If he forgets to turn it off, his connection would be 3 times slower to what he should have on a daily usage. Download portable OpenVPN http://sourceforge.net/projects/ovpnp/ Setup config file and email the whole thing to him. All he has to do, just unzip/unrar the file and run executable file as administrator. I use it on a daily basis.
     
    Last edited: Aug 13, 2013
  14. jbcdidgosir

    jbcdidgosir Serious Server Member

    Thank you for your reply. But my friends are absolute fool on network and PC. And if I can use openvpn in router, more guys can join my game without installing openvpn. I also needn't distribute more keys.
     
  15. lancethepants

    lancethepants Network Guru Member

    You can setup OpenVPN to use username/password authentication. Then you can distribute just one cert and config file to all you buddies, and they each then must login with a username/password, which is easily to update in a single file.
     

Share This Page