Discussion Locked

IPTABLES and IPSEC

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have my linux box configured as a FW using IPTABLES and I want to pass IPSEC thru this box.
Does anyone know how to do this? Please, help us out.
Thanks for your time.

5 replies

by shanghai sam

You need to allow ESP, AH and ISAKMP/IKE traffic. That means you need to allow IP protocols number 50 (ESP) and 51 (AH). These are the protocols not the ports. Just as UDP is protocol 17 and TCP is protocol 6. You will also have to open up UDP port 500 for the ISAKMP/IKE traffic. The commands would be something like this:

${IPTABLES} -t filter -A INETIN -p ah -j ACCEPT
${IPTABLES} -t filter -A INETIN -p esp -j ACCEPT

You may have to adjust them for your system. Also add the UDP / port 500 rule.

This discussion is closed to new replies.