Giter Site home page Giter Site logo

Comments (3)

xbrs1 avatar xbrs1 commented on July 3, 2024

local 1.2.3.4 -> ip addr of the eth
remote 5.6.7.8 -> ip addr of the eth remote peer

unless your local peer has an eth with ip 1.2.3.4 and remote peer with 5.6.7.8 it won't work.

I simple bash i use to bring up l2tpv3, you can use it but adjust to fit your needs.

root@vsrv-bicab-2u:/home/VPN# cat L2TPv3.sh
#!/bin/bash
YELLOW='\033[93m'
GREEN='\033[92m'
END='\033[0m'

echo -e "${GREEN}Removing old L2TPv3 tunnel interface${END}"
ip link set l2tpeth0 down
ip l2tp del session tunnel_id 101 session_id 1001
ip l2tp del tunnel tunnel_id 101
echo -e "${GREEN}Setting up L2TPv3 tunnel interface${END}"
ip l2tp add tunnel tunnel_id 101 peer_tunnel_id 100
encap udp local 192.168.0.239 remote 100.80.1.252
udp_sport 5000 udp_dport 6000

ip l2tp add session tunnel_id 101 session_id 1001
peer_session_id 1000

ip link set l2tpeth0 up mtu 1500

ip addr add 192.168.231.2 peer 192.168.231.1 dev l2tpeth0

ip route add 192.168.231.0/24 dev l2tpeth0

ip l2tp show tunnel

from tunneldigger.

RalfJung avatar RalfJung commented on July 3, 2024

@bennlich I am afraid this is not a great place for such questions about ip l2tp. I for once have never used manual l2tp tunnels. I'll leave it open a bit more in case someone stumbles upon this, but have you tried StackOverflow? I'd expect more people to be able to help you there.

from tunneldigger.

bennlich avatar bennlich commented on July 3, 2024

Thanks @RalfJung and @xbrs1! I have yet to try @xbrs1's suggestion.

Once I get a better understanding of whats going on under the hood of ip l2tp and tunneldigger, I might post here for posterity, but will close for now. (And will link to an SO post if/when I make one.)

from tunneldigger.

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.