<div dir="ltr"><div>Hi,</div><div><br></div>I am curious on why NAT is not possible.  The basic requirement of NAT is look at the IP addresses and TCP ports, rewrite those, then install the reverse flow similarly.  This should be doable in the most basic of OpenFlow switches. Are you trying to do this in a proactive manner?<div>

<br></div><div>Regards</div><div>KK</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 19 July 2013 14:08, Shabbir Ahmed <span dir="ltr"><<a href="mailto:shabbir1282@gmail.com" target="_blank">shabbir1282@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>NAT is not yet possible, u can use iptables for NAT as one interface out of of-datapath.<br><br></div>

are you trying it on mininet or some other platform?<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, Jul 18, 2013 at 11:41 PM, Murphy McCauley <span dir="ltr"><<a href="mailto:murphy.mccauley@gmail.com" target="_blank">murphy.mccauley@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


samples.mixed_switches demonstrates treating different switches differently (which you'll want so that you can treat some as L2 switches and one as your NAT node).<br>
<br>
I don't think we have a straight NAT component example, though misc.ip_loadbalancer is maybe not miles and miles from it.<br>
<br>
Hope that helps.  Apologies for the brevity, but I'm busy today. :)<br>
<span><font color="#888888"><br>
-- Murphy<br>
</font></span><div><div><br>
On Jul 18, 2013, at 9:49 AM, Sadia Bashir wrote:<br>
<br>
> Hi everyone, I am new to pox and want to write a POX controller which will convert one of the switch from the topology to a NAT Router. Topology consists of 3 L2 switches, 1 L3 switch which POX-controller should convert to NATting device and other L2 switches are connected to the L3 switch. Each switch is connected to two hosts and it also includes two private and one public subnet. Any sample code or help will be appreciated. Thanks!<br>



<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>