Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Setup OpenVPN server port tap1
- openvpn --mktun --dev tap1
- brctl addif br0 tap1
- ifconfig tap1 0.0.0.0 promisc up
- # Setup OpenVPN client port tap0
- sleep 30
- openvpn --config /tmp/openvpncl/openvpn.conf > /tmp/openvpncl/openvpncl.log &
- sleep 10
- ifconfig tap0 0.0.0.0
- brctl addif br0 tap0
- sleep 15 ; insmod ebtables ; insmod ebtable_filter ; insmod ebt_ip &
- sleep 25 ; ebtables -I INPUT -i tap0 -p IPv4 --ip-protocol udp --ip-destination-port 67:68 -j DROP &
- sleep 5 ; ebtables -I OUTPUT -o tap0 -p IPv4 --ip-protocol udp --ip-destination-port 67:68 -j DROP &
Advertisement
Add Comment
Please, Sign In to add comment