All of lore.kernel.org
 help / color / mirror / Atom feed
* Issue related to conntrack while insert new rule with conntrack command in linux
@ 2019-04-25 14:59 Mojtaba
  2019-04-25 15:08 ` Mojtaba
  0 siblings, 1 reply; 13+ messages in thread
From: Mojtaba @ 2019-04-25 14:59 UTC (permalink / raw)
  To: netfilter-devel

Hello all
I read man conntrack document guide. That is great.
I have a issue while i am working on it. For example i just want add
new rule like this:
conntrack -I -p udp -s 192.168.122.242 -d 192.168.122.103 --sport 5070
--dport 5005 -r 192.168.122.1 -q 192.168.122.103 --reply-port-src 1111
--reply-port-dst 2222 --timeout 30

But it doen't work.
if i insert these two rule in iptable, the same above rule will insert
in conntrack table automatically and work correctly.
iptables -t nat -A PREROUTING -i eth0 -p udp -s 192.168.122.242
--dport 5005 -j DNAT --to 192.168.122.1:1111

iptables -t nat -A POSTROUTING -p udp --dport 1111 -j SNAT --to
192.168.122.103:2222
Who can i solve this problem?
With Best regards.Mojtaba


-- 
--Mojtaba Esfandiari.S

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Issue related to conntrack while insert new rule with conntrack command in linux
@ 2019-04-25  9:22 Mojtaba Esfandiari
  0 siblings, 0 replies; 13+ messages in thread
From: Mojtaba Esfandiari @ 2019-04-25  9:22 UTC (permalink / raw)
  To: netfilter-devel

Hello,
I read conntrack document that you wrote about connection tracking. That 
is great.
I have a issue while i am working on it. For example i just want add new 
rule like this:
conntrack -I -p udp -s 192.168.122.242 -d 192.168.122.103 --sport 5070 
--dport 5005 -r 192.168.122.1 -q 192.168.122.103 --reply-port-src 1111 
--reply-port-dst 2222 --timeout 30

But it doen't work.
if i insert these two rule in iptable, the same above rule will insert 
in conntrack table automatically and work correctly.
iptables -t nat -A PREROUTING -i eth0 -p udp -s 192.168.122.242 --dport 
5005 -j DNAT --to 192.168.122.1:1111

iptables -t nat -A POSTROUTING -p udp --dport 1111 -j SNAT --to 
192.168.122.103:2222
Who can i solve this problem?
With Best regards

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2019-04-28  8:02 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-25 14:59 Issue related to conntrack while insert new rule with conntrack command in linux Mojtaba
2019-04-25 15:08 ` Mojtaba
2019-04-25 22:45   ` Pablo Neira Ayuso
2019-04-26 10:22     ` Mojtaba
2019-04-26 19:23     ` Mojtaba
2019-04-26 19:37       ` Pablo Neira Ayuso
2019-04-26 19:50         ` Mojtaba
2019-04-27  9:01           ` Mojtaba
2019-04-27  9:43             ` Pablo Neira Ayuso
2019-04-27 11:30               ` Mojtaba
2019-04-28  6:29                 ` Mojtaba
2019-04-28  8:02                   ` Mojtaba
  -- strict thread matches above, loose matches on Subject: below --
2019-04-25  9:22 Mojtaba Esfandiari

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.