ip route add 10.0.70.0/24 dev br-lan_vpn table vpn
ip rule add from 10.0.70.0/24 table vpn
ip route add default dev tun0 table vpn
ip route flush cache
pacotes a instalar:
openvpn
luci-app-openvpn
iptables-mod-ipopt (para poder marcar os pacotes no iptables - se calhar não é necesário)
net.ipv4.icmp_errors_use_inbound_ifaddr=1 - em /etc/sysctl.conf,
the message will be sent with the primary address of the
interface that received the packet that caused the ICMP error. This is
the behavior that many network administrators will expect from a
router. And it can make debugging complicated network layouts much
easier.
rede (switch):
wan - vlan 2 - [1U cpuT]
lan - vlan1 - [2U 3U cpuT]
vpn - vlan3 - [4U 5U cpuT]
rede (interfaces):
wan - eth0.2
lan - br [vlan1 OpenWrt]
vpn - br [vlan3 OpenWrt_vpn]
http://lgallardo.com/en/2011/05/22/instalacion-de-openwrt-en-tp-link-tl…
http://lgallardo.com/en/2011/09/08/configurar-openvpn-en-openwrt/
http://wiki.openwrt.org/doc/howto/notuci.config
http://blog.philippklaus.de/2011/04/openwrt-on-a-tp-link-tl-wr1043nd-gi…
http://wiki.openwrt.org/toh/tp-link/tl-wr1043nd
http://downloads.openwrt.org/backfire/10.03.1/ar71xx/
http://wiki.openwrt.org/doc/uci
http://wiki.openwrt.org/doc/networking/routing
http://wiki.openwrt.org/doc/uci/network
http://wiki.openwrt.org/inbox/vpn.howto
http://wiki.openwrt.org/doc/howto/generic.failsafe
https://forum.openwrt.org/viewtopic.php?id=24048
http://wiki.openwrt.org/doc/howto/vpn.client.openvpn.tun
http://wiki.openwrt.org/doc/techref/hotplug
http://wiki.openwrt.org/doc/howto/hardware.button
http://wiki.openwrt.org/doc/techref/swconfig
http://wiki.openwrt.org/doc/hardware/port.serial#usb.to.rs232.ttl.conve…
http://wiki.openwrt.org/doc/howto/snippets#ipv6.activity.led
https://forum.openwrt.org/viewtopic.php?id=24048
http://www.networksorcery.com/enp/protocol/icmp/msg3.htm
https://forum.openwrt.org/viewtopic.php?id=21114
http://wiki.openwrt.org/doc/uci/firewall
http://www.linuxjournal.com/content/tech-tip-getting-your-mac-and-ip-ad…
http://dalemonk.wordpress.com/network-scripts/
http://wiki.openwrt.org/doc/uci/network/switch
http://wiki.openwrt.org/doc/techref/flash.layout
http://www.thepowerbase.com/2012/01/openwrt-build-guide-start-to-finish/