mirror of
https://github.com/kubenetworks/kubevpn.git
synced 2025-10-08 00:30:29 +08:00
fix: use "" instead of use ''
This commit is contained in:
@@ -54,7 +54,7 @@ iptables -P FORWARD ACCEPT
|
|||||||
iptables -t nat -A PREROUTING ! -p icmp -j DNAT --to ${LocalTunIP}
|
iptables -t nat -A PREROUTING ! -p icmp -j DNAT --to ${LocalTunIP}
|
||||||
iptables -t nat -A POSTROUTING ! -p icmp -j MASQUERADE
|
iptables -t nat -A POSTROUTING ! -p icmp -j MASQUERADE
|
||||||
iptables -t nat -A OUTPUT -o lo ! -p icmp -j DNAT --to-destination ${LocalTunIP}
|
iptables -t nat -A OUTPUT -o lo ! -p icmp -j DNAT --to-destination ${LocalTunIP}
|
||||||
kubevpn serve -L 'tun://0.0.0.0:8421/${TrafficManagerRealIP}:8422?net=${InboundPodTunIP}&route=${Route}' --debug=true`,
|
kubevpn serve -L "tun://0.0.0.0:8421/${TrafficManagerRealIP}:8422?net=${InboundPodTunIP}&route=${Route}" --debug=true`,
|
||||||
},
|
},
|
||||||
SecurityContext: &corev1.SecurityContext{
|
SecurityContext: &corev1.SecurityContext{
|
||||||
Capabilities: &corev1.Capabilities{
|
Capabilities: &corev1.Capabilities{
|
||||||
|
@@ -137,7 +137,7 @@ iptables -F
|
|||||||
iptables -P INPUT ACCEPT
|
iptables -P INPUT ACCEPT
|
||||||
iptables -P FORWARD ACCEPT
|
iptables -P FORWARD ACCEPT
|
||||||
iptables -t nat -A POSTROUTING -s ${CIDR} -o eth0 -j MASQUERADE
|
iptables -t nat -A POSTROUTING -s ${CIDR} -o eth0 -j MASQUERADE
|
||||||
kubevpn serve -L tcp://:10800 -L tun://:8422?net=${TrafficManagerIP} --debug=true`,
|
kubevpn serve -L "tcp://:10800 -L tun://:8422?net=${TrafficManagerIP}" --debug=true`,
|
||||||
},
|
},
|
||||||
Env: []v1.EnvVar{
|
Env: []v1.EnvVar{
|
||||||
{
|
{
|
||||||
|
@@ -37,7 +37,7 @@ iptables -P INPUT ACCEPT
|
|||||||
iptables -P FORWARD ACCEPT
|
iptables -P FORWARD ACCEPT
|
||||||
iptables -t nat -A PREROUTING ! -p icmp ! -s 127.0.0.1 ! -d ${CIDR} -j DNAT --to 127.0.0.1:15006
|
iptables -t nat -A PREROUTING ! -p icmp ! -s 127.0.0.1 ! -d ${CIDR} -j DNAT --to 127.0.0.1:15006
|
||||||
iptables -t nat -A POSTROUTING ! -p icmp ! -s 127.0.0.1 ! -d ${CIDR} -j MASQUERADE
|
iptables -t nat -A POSTROUTING ! -p icmp ! -s 127.0.0.1 ! -d ${CIDR} -j MASQUERADE
|
||||||
kubevpn serve -L 'tun:/${TrafficManagerRealIP}:8422?net=${InboundPodTunIP}&route=${Route}' --debug=true`,
|
kubevpn serve -L "tun:/${TrafficManagerRealIP}:8422?net=${InboundPodTunIP}&route=${Route}" --debug=true`,
|
||||||
},
|
},
|
||||||
Env: []v1.EnvVar{
|
Env: []v1.EnvVar{
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user