Je vais mettre mes règles Iptables mais comme je fais plein de test pour que ça fonctionne, j'ai peur qu'@Aerya fasse une attaque...
La j'en suis vraiment à une phase critique alors j'ai tenté d'autres scripts, ce qui explique le bordel (oui je sais que je cherche des excuses...)
sudo /sbin/iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:51413
ACCEPT udp -- anywhere anywhere udp dpt:51413
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:943
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere tcp dpt:16642
ACCEPT tcp -- anywhere anywhere tcp dpt:9050
ACCEPT udp -- anywhere anywhere udp dpt:5090
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- 10.8.0.0/24 anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- 10.8.0.0/24 anywhere
ACCEPT tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,ACK/SYN limit: avg 1/sec burst 5
ACCEPT udp -- anywhere anywhere limit: avg 1/sec burst 5
ACCEPT icmp -- anywhere anywhere icmp echo-request limit: avg 1/sec burst 5
ACCEPT tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,ACK/RST limit: avg 1/sec burst 5
ACCEPT tcp -- anywhere 172.XX.XXX.X state NEW,RELATED,ESTABLISHED tcp dpt:51413
ACCEPT udp -- anywhere 172.XX.XXX.X state NEW,RELATED,ESTABLISHED udp dpt:51413
ACCEPT tcp -- anywhere 10.8.0.5 multiport dports 51413,http,https,9099,9097,943,openvpn
ACCEPT tcp -- anywhere XXX.XXX.XX.92.rev.sfr.net multiport dports 51413,http,https,9099,9097,943,openvpn
ACCEPT tcp -- anywhere 192.168.0.18 multiport dports 51413,http,https,9099,9097,943,openvpn
ACCEPT tcp -- anywhere vpsXXXXX.vps.ovh.ca multiport dports 51413,http,https,9099,9097,943,openvpn
ACCEPT tcp -- anywhere 172.XX.XXX.X multiport dports 51413,http,https,9099,9097,943,openvpn
ACCEPT udp -- anywhere 10.8.0.5 multiport dports 51413,http,https,9099,9097,943,openvpn
ACCEPT udp -- anywhere XXX.XXX.XX.92.rev.sfr.net multiport dports 51413,http,https,9099,9097,943,openvpn
ACCEPT udp -- anywhere 192.168.0.18 multiport dports 51413,http,https,9099,9097,943,openvpn
ACCEPT udp -- anywhere vpsXXXXX.vps.ovh.ca multiport dports 51413,http,https,9099,9097,943,openvpn
ACCEPT udp -- anywhere 172.XX.XXX.X multiport dports 51413,http,https,9099,9097,943,openvpn
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Pour les logs, voilà ce que j'ai trouvé, j'ai mis ça dans un Pastebin pour plus de clarté :
J'ai masqué deux IP,
celle de ma connection maison (donc celle du NAS) : 92.XX.XXX.XXX
et celle du VPS sur lequel est installé OpenVPN : 149.XX.XXX.X
Je n'ai pas masqué les autres IP car je ne sais pas à quoi elles correspondent...
https://paste.mondedie.fr/?f981a4f1b4734532#2Iy2MOIgBTqKDiky1sKClCmON8CMUxQvEL3fmK2sVY0=
Je vous remercie de votre aide !