I am quite inexperienced when it comes to Linux and now I am setting up the system. What I want to do is to write a shell script, that will do two things:
i2prouter- as I do not want it to run all the time as a daemon as it takes lots of traffic.
- Will run new iptables procedures that will set new rules for the internet.
I made a new iptables rules file (called
When I do it from terminal I write the following
i2prouter start sudo iptables-restore < /etc/iptables.up.rules
But if I just put it in the
.sh file and make it executable, it does not seem to work.