Hello,
I have a VPN-Freeswan server/client host behind ASL 2.0 with private IP (lets call A), and I want to connect it with other public hosts too with Freeswan ( lets call B).
Rules let pass esp and udp 500 between A and external hosts
Internal A is masquerade and I can connect without problem from A to B but if I want connect from B to A I need DNAT udp 500 and esp protocol from 0.0.0.0 to internal server. With webmin admin I can DNAT udp 500 but I can not to add a DNAT rule with a service with a protocol other than tcp or udp.
So how can I add to NAT firewall rules something like this ? :
iptables -t nat -I AUTO_NAT_PRE -p esp -d -j DNAT --to A
Must I hack ASL box, and if I must, what way do you suggest ?
Another question:
Why if I add a DNAT rule, I found a AUTO_NAT_PRE entry with the rule and too a AUTO_NAT_OUTwith same rule, isnt it innecessary ?.
Regards
M. Deza
This thread was automatically locked due to age.