Mimiko wroteIf dhcp is running on same computer, why you relay from br1? Just configure dhcp to serve on br1 too.
as a matter of size/scale, it happens to be running in the same computer and another computer on a network locally connected to the gateway. I am trying to construct a solution that does not require that to be so, thereby enabling growth or implementation in a larger environment.
Mimiko wrotetap adapter is not a loopback adapter adpter. Although you can ping locally atached every ethernet adapter and get answer, the loopback concept is different.
you're right, i had some broken rules it seems, and could only ping the 50.254 address from the router, and it showed on the lo adapter because was the only adapter configured to allow the access. see log entry:
2011-10-17T19:55:19.495768-04:00 router kernel: [435379.581208] RULE 0 -- ACCEPT IN= OUT=lo SRC=192.168.50.254 DST=192.168.50.254 LEN=84 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=ICMP TYPE=8 CODE=0 ID=22573 SEQ=1
Mimiko wroteYou are using only one OpenVPN instance, why create two tap adapters? And bridge them? It's definatly wrong. Don't create a bridge. Just assign IP 192.168.50.254 to the tap0, and use it in the config: "dev tap0".
see this link:
http://openvpn.net/index.php/open-source/documentation/install.html?start=1
under the heading "Notes -- Ethernet bridging, Windows client, Linux Server", the article states:
This script will set up ethernet bridging between eth1, tap0, and tap1. Change the br0 ifconfig to match the ifconfig that would be used for eth1 under normal, non-bridged configuration. Use as many tapX virtual adapters as you will have remote clients connecting.
(emphasis mine)
Mimiko wroteIf you whant a separate segment, why you are pushing 192.168.1.0?
because i thought that was adding the route to the clients routing table. would be needed, right? at least i thought it would be...
Mimiko wroteIf the segment is appart, then configure dhcp to server on tap adapter the desired IP range.
see above, would like a scalable solution.
Mimiko wroteYou will have to use masquarading and iptable rules to be able to manage the VPN segment from a computer different than 192.168.1.254.
right, and getting that correct is not as straight forward as i thought. i think i will need to reorder/restrict my iptables rules so the gateway can get an address from the ISP, but doesnt "leak" dhcp requests from the vpn network out to the ISP.