Answer the question
In order to leave comments, you need to log in
How to forward IPsec traffic to another subnet?
Greetings, dear community, there are
three network cards on the server:
red0 - external
orange0 - dmz
green0 -
ipsec locale is built through an external card on dmz. Everything works well, then with the rules I forward packets from local to ipsec:
iptables -t NAT -I POSTROUTING -d 192.168.80.0/24 -j SNAT --to-source 172.16.10.254
iptables -I FORWARD -s 192.168.80.98 -j ACCEPT
iptables -I FORWARD -d 192.168.80.98 -j ACCEPT
Answer the question
In order to leave comments, you need to log in
The rule solved the problem:
iptables -t nat -A PREROUTING -p tcp -d 172.16.10.254 --dport 27017 -j DNAT --to-destination 192.168.5.237:27017
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question