zerotier_vpn_to_lan_troubleshooting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
zerotier_vpn_to_lan_troubleshooting [2025/07/10 15:42] osozerotier_vpn_to_lan_troubleshooting [2025/07/22 13:02] (current) – [VPN no puede acceder a la LAN (srv05 como gateway Zerotier)] oso
Line 38: Line 38:
  
 <code> <code>
-sudo iptables -I FORWARD 1 -j LOG --log-prefix "FORWARD DROP: " --log-level 4+sudo iptables -I FORWARD 1 -j LOG --log-prefix "FORWARD TRACE: " --log-level 4
 tail -f /var/log/syslog | grep "FORWARD DROP:" tail -f /var/log/syslog | grep "FORWARD DROP:"
 </code> </code>
Line 95: Line 95:
 === Notas finales === === Notas finales ===
  
 +<WRAP center round important 60%>
 Para mantener la configuración: Para mantener la configuración:
 +</WRAP>
 +
  
 <code> <code>
 sudo apt install iptables-persistent sudo apt install iptables-persistent
-sudo iptables-save /etc/iptables/rules.v4+sudo iptables-save | sudo tee /etc/iptables/rules.v4 > /dev/null
 </code> </code>
  
Line 145: Line 148:
 tail -f /var/log/syslog | grep "FORWARD TRACE:" tail -f /var/log/syslog | grep "FORWARD TRACE:"
 </code> </code>
 +
 +Once you've found the issue, remember to remove the logging rule to avoid excessive log entries:
 +
 +<code>sudo iptables -D FORWARD -j LOG --log-prefix "FORWARD TRACE: " --log-level 4</code>
 +
  
 ==== 2. Confirmar IP Forwarding ==== ==== 2. Confirmar IP Forwarding ====
zerotier_vpn_to_lan_troubleshooting.1752162139.txt.gz · Last modified: 2025/07/10 15:42 by oso