Aucune description
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

etc_rc.local 512B

1234567891011121314151617181920
  1. #!/bin/sh -e
  2. #
  3. # rc.local
  4. #
  5. # This script is executed at the end of each multiuser runlevel.
  6. # Make sure that the script will "exit 0" on success or any other
  7. # value on error.
  8. #
  9. # In order to enable or disable this script just change the execution
  10. # bits.
  11. #
  12. iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
  13. iptables -A FORWARD -s 10.8.0.0/24 -j ACCEPT
  14. iptables -A FORWARD -j REJECT
  15. iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
  16. /etc/init.d/dnsmasq restart
  17. exit 0