Discussion:
[strongSwan] strange iptables behavior
Kamil Jońca
2018-07-03 10:07:40 UTC
Permalink
In my updown script I have this rule:

(1) iptables -I INPUT -i ${PLUTO_INTERFACE} -s ${PLUTO_PEER} -d ${PLUTO_ME} -m policy --strict --dir in --pol ipsec --reqid $PLUTO_REQID -j ACCEPT
(2) iptables -I INPUT -i ${PLUTO_INTERFACE} -s ${PLUTO_PEER_CLIENT} -d ${PLUTO_MY_CLIENT} -m policy --strict --pol ipsec --dir in --mode tunnel --tunnel-dst ${PLUTO_ME} --next --mode tunnel --tunnel-src ${PLUTO_PEER} -j ACCEPT

First rule works as expected, but second does not match any packet and
there is no traffic

Strange thing is: if I set second rule manually later - packet match
and traffic goes on.
WTF?
KJ
--
http://wolnelektury.pl/wesprzyj/teraz/
grep me no patterns and I'll tell you no lines.
Continue reading on narkive:
Search results for '[strongSwan] strange iptables behavior' (Questions and Answers)
4
replies
Strange Linux permissions - what's going on?
started 2007-09-28 17:24:07 UTC
programming & design
Loading...