Good afternoon Everyone,
I am currently trying to setup weaved and trying to find a workout to make it work with iptables. When i run the following command:
$ weavedconnectd.pi -n
WeavedConnectd built Apr 13 2016 at 16:56:27 Now Starting Up
Version 3.5 - (c)2016 Weaved, Inc. All Rights Reserved
Built with ALIGN BCASTER MALLOC_POOL LINUX RESOLVE BIGBUF NOTE pool=262144
Raspberry Pi Version
Running Weaved Network Diagnostics
Checking if DNS works ... .[OK]
Checking TCP connectivity to weaved.com...fail MCTESTa fpr server 18.104.22.168
fail MCTESTa fpr server 22.214.171.124
Checking UDP connectivity to weaved.com...
Send to 126.96.36.199:5959  [mip=188.8.131.52] [oport=59612 mport=59612] [preserve port]
Send to 184.108.40.206:5960  [mip=220.127.116.11] [oport=59612 mport=59612] [no remap] [preserve port] [OK]
This router preserves ports, this is optimal.
This router doesn't remap new connections to new ports.
Static Pool Free
Endian : Little
I opened the correct outgoing udp ports and outbound dns however which tcp port do i need to open ?
iptables -A INPUT -i wlan0 -p udp --sport 5959:5970 -m state --state ESTABLISHED -j ACCEPT
iptables -A OUTPUT -o wlan0 -p udp --dport 5959:5970 -m state --state NEW,ESTABLISHED -j ACCEPT
sudo iptables -A OUTPUT -p udp -o wlan0 --dport 53 -j ACCEPT
sudo iptables -A INPUT -p udp -i wlan0 --sport 53 -j ACCEPT
I can see my device on remot3.it but i can't start ssh, it enters a loading loop, of course it is working if i set the default policies as followed:
iptables -P OUTPUT ACCEPT
iptables -P INPUT ACCEPT
I've tried to allow outgoing and incoming https but also incoming http without success. Any idea ?
Thank you in advance,