# This is the /etc/network/interfaces script I use
# to setup an open WLAN that I then limit to openVPN
# port and my laptop's MAC address only, with iptables.

iface ra0 inet static
        address 10.0.0.1
        netmask 255.255.255.0
        post-up iwconfig ra0 channel 11
        post-up iwconfig ra0 mode ad-hoc
        post-up iwconfig ra0 key open off
        post-up iwconfig ra0 essid "Jarnos_VPN"
        post-up iwconfig ra0 rate auto
        # pre-down /etc/init.d/openvpn stop

