Hello developers
I'm trying to send TCP traffic between two hosts that are in different subnets
through a third host that acts as a router
The VM Router has an ovs implemented which is managed with a ryu app.
The problem is that the VM "router" never forwards traffic tcp.
I attached the tcp function:
def _handle_tcp_fwd(self, datapath, port, pkt_ethernet, pkt_ipv4, pkt_tcp):
pkt = packet.Packet()
if port == 1:
mac_dst = self.mac_victima
mac_src = self.hw_addruno
elif port == 2:
mac_dst = self.mac_atacante
mac_src = self.hw_addrdos
pkt.add_protocol(ethernet.ethernet(ethertype=pkt_ethernet.ethertype,
dst=mac_dst,
src=mac_src))
pkt.add_protocol(ipv4.ipv4(dst=pkt_ipv4.dst,
src=pkt_ipv4.src,
proto=pkt_ipv4.proto))
pkt.add_protocol(tcp.tcp(src_port=pkt_tcp.src_port,
dst_port=pkt_tcp.dst_port,
seq=pkt_tcp.seq,
ack=pkt_tcp.ack,
offset=0,
bits=pkt_tcp.bits,
window_size=pkt_tcp.window_size,
csum=0,
urgent=pkt_tcp.urgent,
option=pkt_tcp.option))
self._send_packet(datapath, port, pkt)
Thanks and best regards, Hector
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel