Nf_nat_range structure flags oring not working.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am currently writing a Netfilter module to use the NAT sub-system to
route UDP packets to a specific destination contained in the packet
itself.

After parsing the packet and retrieving the IP, I am creating a
nf_nat_range structure and setting the min_proto and min_addr
structures.

Then I am oring the NF_NAT_RANGE_MAP_IPS and the NF_NAT_RANGE_PROTO_SPECIFIED.

After the structure has been properly configured I am calling the
nf_nat_setup_info function and passing it the ct, the nf_nat_range
structure, and NF_NAT_MANIP_DST.

The issu is that the oring is not working.  If the flags parameter is
not assigned directly to the NF_NAT_RANGE_MAP_IPS the packet is not
natted and forwarded to the destination.

I cannot work out why this is happening.  My ultimate aim is to be
able to nat the packet to a different IP and port.

Thanks
Geoffrey
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux