I am trying to use my openwrt router to connect to my home network and i can connect to the vpn server but i need to forward or bridge the vpn so everything that comes through the router either through the wired switch or the wifi then routed through the vpn. More simply clients ---> router (vpn client) ---> vpn server.
It doesnt matter if i can access resources on my home network with it just that its tunneled through my home network so i appear to be using my home IP address. Im also unsure whether to use tap or tun. Any help would be appreciated.
By the way im using all command line because i have a 4mb flash router so i had to build a custom image without the gui so i could fit openvpn.
I have some firewall rules setup to try and foward the traffic but i think what i need is probably a bridge since im using tap currently. I also have redirect-gateway-def1 in my openvpn config file. I guess what i am asking is how to create a bridge for my purposes. my current etc/config/firewall file contains these lines which pertain to the vpn.
config zone
option name 'VPN_client1'
option masq '1'
option input 'ACCEPT'
option forward 'REJECT'
option output 'ACCEPT'
list network 'VPN_client1'
config forwarding
option dest 'lan'
option src 'VPN_client1'
config forwarding
option dest 'VPN_client1'
option src 'lan'
From the computer hooked up to the router it can ping the router and thats it. btw this question was kicked off serverfault so im posting it here.
Btw my openvpn server is running on ddwrt on my home router using tun.
MASQUERADE
on your VPN connection?