Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3247

simple set of iptables LT2P/IPSEC VPN rules & flashing traffic LED (1 reply)

$
0
0
Hi,

I have set up a little LT2P/IPSEC VPN server on a little Kirkwood device (wheezy/linux3.5)

I want to use it to securely use public wifi with my ipad .. so traffic goes from the ipad through the wifi hotspot to my wifi cable router to my wifi interface (wlan0) of the Kirkwood and does the iptables/VPN server stuff out to the net back in to the VPN server and back to the ipad via my cable router and the public hotspot ... ive tested it and it seems to work ok - all seems encrypted

(my router port fwds to the Kirkwood 1701(TCP)/4500(UDP)/500(UDP)

I just need to apply some rules to lock it down a bit (iptables) and get the customary LED flashing when there is network traffic :-)

could anyone suggest a simple set of rules for iptables to suit ?...

and also how do I go about getting the LED to flash on and off with the network traffic (presumably this is an iptables rule as well ?) .. the following switches the LED on and off

LED ON
echo 255 > /sys/class/leds/power_red_led/brightness

LED OFF
echo 0 > /sys/class/leds/power_red_led/brightness



thanks for your help .. rgds

ian

Viewing all articles
Browse latest Browse all 3247

Trending Articles