#!/bin/sh # OpenVPN iptables skript # -- # (C) 2014 Rene Knipschild - Custom Software Development # www.rkcsd.com - P.O. Box 1468 - 34484 Korbach - GERMANY # Phone: +49 5631 9189488 # Email: email@rkcsd.com # Use my PGP pubkey for email requests: (download here) # http://go.reneknipschild.net/pubkey ### BEGIN INIT INFO # Provides: openvpn-iptables # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Sets up OpenVPN iptables ### END INIT INFO case "$1" in start) echo "Setting up OpenVPN iptables..." iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE ;; stop) ;; *) echo "Usage: /etc/init.d/openvpn-iptables {start|stop}" exit 1 ;; esac exit 0