Giter VIP home page Giter VIP logo

Comments (5)

hwdsl2 avatar hwdsl2 commented on May 18, 2024

@013231 If the VPN clients are connected to the server via IPsec/L2TP, they should be assigned IPs within the VPN subnet 192.168.42.0/24. For example, the VPN server is at 192.168.42.1, and VPN clients are at 192.168.42.10, 192.168.42.11, 192.168.42.12, etc. In the default configuration, VPN clients can communicate with each other using the IP addresses as mentioned above.

from docker-ipsec-vpn-server.

013231 avatar 013231 commented on May 18, 2024

@hwdsl2 Thanks. I know the subnet ips, but these clients really cannot communicate with each other.
ping 192.168.42.1(ping server from client0):

PING 192.168.42.1 (192.168.42.1) 56(84) bytes of data.
64 bytes from 192.168.42.1: icmp_seq=1 ttl=64 time=6.75 ms
64 bytes from 192.168.42.1: icmp_seq=2 ttl=64 time=6.21 ms

ping 192.168.42.1(ping server from client1):

PING 192.168.42.1 (192.168.42.1) 56(84) bytes of data.
64 bytes from 192.168.42.1: icmp_seq=1 ttl=64 time=6.59 ms
64 bytes from 192.168.42.1: icmp_seq=2 ttl=64 time=6.34 ms

ping 192.168.42.10(ping client0 from server):

PING 192.168.42.10 (192.168.42.10): 56 data bytes
64 bytes from 192.168.42.10: icmp_seq=0 ttl=64 time=8.417 ms
64 bytes from 192.168.42.10: icmp_seq=1 ttl=64 time=6.512 ms

ping 192.168.42.11(ping client1 from server):

PING 192.168.42.11 (192.168.42.11): 56 data bytes
64 bytes from 192.168.42.11: icmp_seq=0 ttl=64 time=7.997 ms
64 bytes from 192.168.42.11: icmp_seq=1 ttl=64 time=6.219 ms

ping 192.168.42.11(ping client1 from client0):

PING 192.168.42.11 (192.168.42.11) 56(84) bytes of data.
7 packets transmitted, 0 received, 100% packet loss, time 5999ms

And I found the solution:
http://unix.stackexchange.com/questions/110436/pptp-allow-remote-clients-to-communicate-with-each-other

from docker-ipsec-vpn-server.

hwdsl2 avatar hwdsl2 commented on May 18, 2024

@013231 Thanks for the update, and happy to hear you got it working. I still think that the IPTables rules in run.sh should take care of this. See run.sh#L210-L224

from docker-ipsec-vpn-server.

013231 avatar 013231 commented on May 18, 2024

@hwdsl2 Sorry, I use an old image without run.sh#L216 😓

from docker-ipsec-vpn-server.

hwdsl2 avatar hwdsl2 commented on May 18, 2024

@013231 Ah I see where the problem is. I suggest that you update to the latest image using docker pull hwdsl2/ipsec-vpn-server, and deploy a new container using instructions from the README. You may need to stop or destroy the old container before this step.

from docker-ipsec-vpn-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.