Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VPN wireless access point
View unanswered posts
View posts from last 24 hours

Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message

Joined: 13 Nov 2007
Posts: 42

PostPosted: Mon Mar 25, 2013 12:57 pm    Post subject: VPN wireless access point Reply with quote

I am trying to set up a VPN access point using my wireless interface. The idea is that any computer that attaches to the wireless interface is automatically on the VPN. I have installed the OpenVPN server in bridged mode. I have set the wireless interface as an access point using hostapd (with bridge=br0 in the config). Now I am a bit lost as to how to proceed.

> /etc/conf.d/net
modules=("!plug openvpn")

# Setting up OpenVPN in bridged mode
# WAN on eth0
# LAN on wlan0
config_eth0=" netmask brd"
routes_eth0="default via"
dns_servers_eth0=( "" )

# Create bridge that hostapd will attach to

# Config of wlan0 as access point
modules_wlan0=("!iwconfig !wpa_supplicant")

> /etc/hostapd/hostapd.conf
interface wlan0

> /etc/openvpn/openvpn.conf
dev tap0

I have the right boot order as well: openvpn starts first, net.br0 second & hostapd last

Just in case, I have already used the wlan0 as an access point and I have set up the routes so that traffic through wlan0 gets directed to eth0.

Any suggestions on how to proceed would be helpful. I am feeling like OpenVPN might not be the right tool for this.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum