Attention: All pages of this wiki depend on the pages that come before it, in order as they are listed on the Main Page. Please check for Dependencies.
Please also look at What You Need to Know Before Using This Wiki
/root/scripts/netup.sh: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
<pre> | <pre> | ||
#!/bin/sh | #!/bin/sh | ||
sysctl -p | |||
iptables-restore < /root/scripts/iptables-restore | iptables-restore < /root/scripts/iptables-restore | ||
</pre> | </pre> | ||
Line 9: | Line 10: | ||
<pre> | <pre> | ||
#!/bin/sh | #!/bin/sh | ||
sysctl -p | |||
/sbin/iptables-restore < /root/scripts/iptables-restore | /sbin/iptables-restore < /root/scripts/iptables-restore | ||
/bin/bash /root/scripts/qos.reset.sh | /bin/bash /root/scripts/qos.reset.sh | ||
/bin/bash /root/scripts/qos.sh | /bin/bash /root/scripts/qos.sh | ||
/usr/local/sbin/ipsec setup start | ##Note with libreswan3.9 and systemd, this line will hang the box on bootup: | ||
/usr/local/sbin/xl2tpd -C /etc/xl2tpd/ | #/usr/local/sbin/ipsec setup start | ||
/usr/local/sbin/xl2tpd -c /etc/xl2tpd/xl2tpd.conf -C /etc/xl2tpd/xl2tpd.control | |||
</pre> | </pre> |
Latest revision as of 16:41, 20 November 2014
Initial Config
#!/bin/sh sysctl -p iptables-restore < /root/scripts/iptables-restore
Finalized Config
#!/bin/sh sysctl -p /sbin/iptables-restore < /root/scripts/iptables-restore /bin/bash /root/scripts/qos.reset.sh /bin/bash /root/scripts/qos.sh ##Note with libreswan3.9 and systemd, this line will hang the box on bootup: #/usr/local/sbin/ipsec setup start /usr/local/sbin/xl2tpd -c /etc/xl2tpd/xl2tpd.conf -C /etc/xl2tpd/xl2tpd.control