startup
Code:
modprobe ipt_MASQUERADE
iptables -F; iptables -t nat -F; iptables -t mangle -F
iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to 71.231.xx.xx
echo 1 > /proc/sys/net/ipv4/ip_forward
/etc/init.d/dhcp3-server start
/etc/init.d/ispconfig_server start
1. How add comments to this file? Is it "#" or "//" or something else?
2. How to add this script to startup in Ubuntu (and other Distros...)?
3. Do you consider this a clean/proper way to run your needed processes?
I made this mini script so that I could add things to my startup without having to hassle on remembering each process and such. Also I am never worried about restarting and facing a issue where something doesnt work when something wasnt started.
Its handy for me at least.
My two cents,
Dimitriy
PS. The script/file needs to be executable. I dont remember the exact command (something like chmod+x 0666 or something) but if anybody knows be sure to mention it here.
Recent comments
5 hours 3 min ago
9 hours 56 min ago
18 hours 48 min ago
19 hours 48 min ago
23 hours 35 min ago
1 day 49 min ago
1 day 4 hours ago
1 day 11 hours ago
1 day 20 hours ago
1 day 22 hours ago