暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

rc.local_ansible_openvpn 369B

1234567891011121314
  1. #!/bin/sh -e
  2. # {{ ansible_managed }}
  3. #
  4. # This script should be included in your rc.local
  5. #
  6. iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
  7. iptables -A FORWARD -s 10.8.0.0/24 -j ACCEPT
  8. iptables -A FORWARD -j REJECT
  9. iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o {{ ansible_default_ipv4.interface }} -j MASQUERADE
  10. systemctl restart dnsmasq
  11. exit 0