New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure Hotspot Server can communicate back to clients #179

Open
timwhite opened this Issue Oct 6, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@timwhite
Copy link
Contributor

timwhite commented Oct 6, 2018

While you can currently ping from the hotspot server to a client, you can't initiate a new connection to a client.

Something like the following allows those connections to work.

diff --git a/chilli/up.sh b/chilli/up.sh
index bf6fbda..9f2c9c4 100755
--- a/chilli/up.sh
+++ b/chilli/up.sh
@@ -47,7 +47,8 @@ then
            ipt_in -p udp -d $ADDR --destination-port 67:68 -j ACCEPT
            ipt_in -p udp --dst $ADDR --dport 53 -j ACCEPT
            ipt_in -p icmp --dst $ADDR -j ACCEPT
-           
+          
+            ipt -A INPUT -i $TUNTAP -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT 
            ipt -A INPUT -i $TUNTAP --dst $ADDR -j DROP
            
            if [ "$ONLY8021Q" != "1" ]

@timwhite timwhite added this to the 3.8.1 milestone Oct 6, 2018

@timwhite timwhite self-assigned this Oct 6, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment