Code Monkey home page Code Monkey logo

az-ip-fwd's People

Contributors

sajitsasi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

az-ip-fwd's Issues

IP forwarding is not persistent, does not survive a reboot

IP forwarding is enabled by

echo "1" > /proc/sys/net/ipv4/ip_forward

This does not survive a reboot. Which lead to some troubleshooting when it broke.

The steps I took to make it persistent.

Open for edit

sudo nano /etc/sysctl.conf

Uncomment following line (arrow down -> DEL the "#")

net.ipv4.ip_forward=1

Save

CTRL+O => Enter

Exit nano

CTRL+X

See file content

cat /etc/sysctl.conf

Check for prerequirements `host` and `iptables`

Instead of powering through with success, please check if prerequirements host and iptables exists on the host where the script is ran.

Either offer to install requirements Y/n, or crash/exit the script.

`iptables` rules are not persistent

Rules generated by this script are not persistent. Script and README.md says nothing about this.

Either mention it in the README.md, and point to options for persistence. Like iptables-persistent.
Or handle it in the script.

I managed to make it persistent like so:

Make iptables persistent

Export current IP tables to a file

sudo iptables-save > ~/rules.v4

Copy file to the location iptables-persistent will use on reboot

sudo /bin/cp -rf ~/rules.v4 /etc/iptables/rules.v4

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.