Code Monkey home page Code Monkey logo

Comments (1)

hwdsl2 avatar hwdsl2 commented on May 8, 2024 1

Step 1: Edit /etc/xl2tpd/xl2tpd.conf and replace these two lines:

ip range = 192.168.42.10-192.168.42.250
local ip = 192.168.42.1

with your desired new range. For example:

ip range = 10.1.1.10-10.1.1.250
local ip = 10.1.1.1

Step 2: Edit /etc/iptables.rules and/or /etc/iptables/rules.v4 (if exists). Search and replace ALL 192.168.42.0/24 with your desired new CIDR, e.g. 10.1.1.0/24.

Step 3: Edit /etc/ipsec.conf and replace %v4:!192.168.42.0/23 with %v4:!192.168.42.0/23,%v4:!10.1.1.0/24.

Step 4: Run these commands to let them take effect:

service ipsec restart
service xl2tpd restart
iptables-restore < /etc/iptables.rules
service fail2ban restart

from setup-ipsec-vpn.

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.