-
type Con struct { Through above structure, don't find the something likes nat ip, eg. --nat-src-ip params when using conntrack-tools, then how to set Conn instance when use snat? I set the Status of IPS_SRC_NAT_BIT, and then create a session, while dump session found only low 3 bit can set(IPS_SEEN_REPLY, IPS_ASSURED.....), but IPS_SRC_NAT_BIT not seted, so, am i using it in a wrong way ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
I'm not aware of a Even if |
Beta Was this translation helpful? Give feedback.
I'm not aware of a
--nat-src-ip
option. Can you point to public documentation of it, so I can read up on it? At the moment I'm not sure about the request.Can you provide a command line which showcases what you are trying to achieve with this package?
Even if
Status
is of typeuint32
, the Kernel does not accept everything - see:https://github.com/torvalds/linux/blob/626bf91a292e2035af5b9d9cce35c5c138dfe06d/net/netfilter/nf_conntrack_netlink.c#L1884-L1905