Hello,
 
I tried to perform NATing ith the following code, but it doesn't work; when i 
ping i received the reply from the old IP not from *dst='10.0.0.20'*

    msg = of.ofp_flow_mod()
    msg.idle_timeout = 100
    msg.hard_timeout = 130
    msg.match.dl_type = pkt.ethernet.IP_TYPE # i tried with and without
    msg.match.nw_dst = IPAddr("10.0.0.10")
    msg.match.nw_src = None
    msg.match.dl_src = None
    msg.actions.append(of.ofp_action_output(port = 4))
    msg.actions.append(of.ofp_action_nw_addr.set_dst(dst))
    core.openflow.sendToDPID(1, msg)
 
I have the following Q:
1. is there an error in the above code, may you please tell me how to fix it
 
 
Thank you
Best regards,

Eng Amer Alghadhban

COE

SANS-GCFW

CEH, SCNP, CCNA

                                          

Reply via email to