vpn firewall settings appear to be needed for Patchwork to discover local peers
This commit is contained in:
parent
df33a12702
commit
c9189104d5
|
@ -454,8 +454,9 @@ function start {
|
||||||
iptables -A INPUT -p tcp --dport 8008 -j ACCEPT
|
iptables -A INPUT -p tcp --dport 8008 -j ACCEPT
|
||||||
iptables -A INPUT -p udp --dport 8010 -j ACCEPT
|
iptables -A INPUT -p udp --dport 8010 -j ACCEPT
|
||||||
iptables -A INPUT -p tcp --dport 8010 -j ACCEPT
|
iptables -A INPUT -p tcp --dport 8010 -j ACCEPT
|
||||||
if [[ "$ethernet_connected" != "0" ]]; then
|
|
||||||
# vpn over the internet
|
# vpn over the internet
|
||||||
|
# Note: the vpn firewall settings are needed in order for Patchwork
|
||||||
|
# to discover local peers
|
||||||
iptables -A INPUT -p tcp --dport 653 -j ACCEPT
|
iptables -A INPUT -p tcp --dport 653 -j ACCEPT
|
||||||
iptables -A INPUT -p udp --dport 653 -j ACCEPT
|
iptables -A INPUT -p udp --dport 653 -j ACCEPT
|
||||||
iptables -A INPUT -i ${EIFACE} -m state --state NEW -p tcp --dport 1194 -j ACCEPT
|
iptables -A INPUT -i ${EIFACE} -m state --state NEW -p tcp --dport 1194 -j ACCEPT
|
||||||
|
@ -469,7 +470,6 @@ function start {
|
||||||
sed -i 's|# net.ipv4.ip_forward|net.ipv4.ip_forward|g' /etc/sysctl.conf
|
sed -i 's|# net.ipv4.ip_forward|net.ipv4.ip_forward|g' /etc/sysctl.conf
|
||||||
sed -i 's|#net.ipv4.ip_forward|net.ipv4.ip_forward|g' /etc/sysctl.conf
|
sed -i 's|#net.ipv4.ip_forward|net.ipv4.ip_forward|g' /etc/sysctl.conf
|
||||||
sed -i 's|net.ipv4.ip_forward.*|net.ipv4.ip_forward=1|g' /etc/sysctl.conf
|
sed -i 's|net.ipv4.ip_forward.*|net.ipv4.ip_forward=1|g' /etc/sysctl.conf
|
||||||
fi
|
|
||||||
|
|
||||||
systemctl restart avahi-daemon
|
systemctl restart avahi-daemon
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue