Commit ea94b769 authored by nanahira's avatar nanahira

fix vdip

parent a022f88e
......@@ -4,7 +4,8 @@ up () {
iptables -t nat -N VDIP
iptables -t nat -A VDIP -p tcp -m multiport --dports {{ansible_ssh_port}} -j RETURN
iptables -t nat -A VDIP -p udp -m multiport --dports {{port}} -j RETURN
iptables -t nat -A VDIP -j DNAT --to-destination {{clientAddress}}
iptables -t nat -A VDIP -p tcp -j DNAT --to-destination {{clientAddress}}
iptables -t nat -A VDIP -p udp -j DNAT --to-destination {{clientAddress}}
iptables -t nat -A PREROUTING -m addrtype --dst-type LOCAL -j VDIP
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment