Most recently, I have done this by creating a veth pair where one end is on the OpenFlow datapath. The other end, therefore, is just like a port to another computer on a LAN; you can do normal Linux IP forwarding between it and your WAN interface, complete with iptables-based NAT. And if you, for example, run dnsmasq bound to that interface, you can get DNS/DHCP on ports connected to the datapath.
-- Murphy On May 19, 2013, at 11:37 PM, Shabbir Ahmed wrote: > thanks, > > I have a tp-link router, I want to add all lan-ports to Datapath and want to > use WAN port as controller port(that connects to controller) and use it as > wan/nat port for internet browsing for the users connected to WIFI and LAN > ports. > > i dont want DHCP and NAT be running through Openflow, daemons like dnsmasq > should let me achieve that and iptables, openflow is only used for allowing > and blocking or playing with lan traffic. > > thanks, > Shabbir.
