Hello,
which is the correct way to forward all protocols for a specific IP directly to a VM?
E.g.
JUMPERint=192.168.90.10
JUMPER=8.4.2.3 (official IP, public)
iptables -t nat ${PARAM} PREROUTING -d ${JUMPER}/32 -p esp -j DNAT --to-destination ${JUMPERint}
iptables -t nat ${PARAM} PREROUTING -d ${JUMPER}/32 -p ah -j DNAT --to-destination ${JUMPERint}
iptables -t nat ${PARAM} POSTROUTING -s ${JUMPERint}/32 -p esp -o vmbr0 -j SNAT --to-source ${JUMPER}
iptables -t nat ${PARAM} POSTROUTING -s ${JUMPERint}/32 -p ah -o vmbr0 -j SNAT --to-source ${JUMPER}
iptables ${PARAM} INPUT -s ${JUMPERint}/32 -p esp -o vmbr0 -j SNAT --to-source ${JUMPER}
iptables ${PARAM} INPUT -s ${JUMPERint}/32 -p ah -o vmbr0 -j SNAT --to-source ${JUMPER}
which is the correct way to forward all protocols for a specific IP directly to a VM?
E.g.
JUMPERint=192.168.90.10
JUMPER=8.4.2.3 (official IP, public)
iptables -t nat ${PARAM} PREROUTING -d ${JUMPER}/32 -p esp -j DNAT --to-destination ${JUMPERint}
iptables -t nat ${PARAM} PREROUTING -d ${JUMPER}/32 -p ah -j DNAT --to-destination ${JUMPERint}
iptables -t nat ${PARAM} POSTROUTING -s ${JUMPERint}/32 -p esp -o vmbr0 -j SNAT --to-source ${JUMPER}
iptables -t nat ${PARAM} POSTROUTING -s ${JUMPERint}/32 -p ah -o vmbr0 -j SNAT --to-source ${JUMPER}
iptables ${PARAM} INPUT -s ${JUMPERint}/32 -p esp -o vmbr0 -j SNAT --to-source ${JUMPER}
iptables ${PARAM} INPUT -s ${JUMPERint}/32 -p ah -o vmbr0 -j SNAT --to-source ${JUMPER}