Skip to content
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

Can't access GUI despite trying various things #10

Open
arooni opened this issue Dec 17, 2023 · 3 comments
Open

Can't access GUI despite trying various things #10

arooni opened this issue Dec 17, 2023 · 3 comments

Comments

@arooni
Copy link

arooni commented Dec 17, 2023

Upon reading about #5

I tried to edit my menu.json to be:

{
        "items": [
                {
                "name": "Syncthing",
                "priority": 0,
                "items": [
                        {"name": "Start Syncthing", "priority": 1, "action": "/mnt/us/extensions/syncthing/bin/syncthing -home=/mnt/us/extensions/syncthing/config &>/mnt/us/syncthing.log"},
                        {"name": "Stop Syncthing", "priority": 2, "action": "killall syncthing"},
                        {"name": "Restart Syncthing", "priority": 3, "action": "killall syncthing; /mnt/us/extensions/syncthing/bin/syncthing -home=/mnt/us/extensions/syncthing/config &> /mnt/us/syncthing.log"},
                        {"name": "Open ALL Firewall ports", "priority": 4, "action": "iptables -A INPUT -i wlan0 -p tcp --dport 8080 -j ACCEPT ; iptables -A INPUT -i wlan0 -p tcp --dport 22000 -j ACCEPT ; iptables -A INPUT -i wlan0 -p tcp --dport 21025 -j ACCEPT"},
                        {"name": "Start Syncthing INSECURE Admin", "priority": 5, "action": "/mnt/us/extensions/syncthing/bin/syncthing -home=/mnt/us/extensions/syncthing/config -gui-address '192.168.0.108:8384' -no-restart &>/mnt/us/syncthing.log"},
                        {"name": "Close INSECURE Admin port", "priority": 6, "action": "iptables -D INPUT -i wlan0 -p tcp --dport 8080 -j ACCEPT"},
                        {"name": "Close ALL Syncthing ports", "priority": 7, "action": "iptables -D INPUT -i wlan0 -p tcp --dport 8080 -j ACCEPT ; iptables -D INPUT -i wlan0 -p tcp --dport 22000 -j ACCEPT ; iptables -D INPUT -i wlan0 -p tcp --dport 21025 -j ACCEPT"}
                  ]
                }
        ]
}`

and  /mnt/us/extensions/syncthing/config so that the line reads

0.0.0.0:8384 FJogQfpn47EDJcp9gvFKvKQogKmqo43t default

And still can't seem to connect to the admin interface to save my life.

Syncthing is definitely running though:

[root@kindle us]# iptables -A INPUT -i wlan0 -p tcp --dport 8080 -j ACCEPT
[root@kindle us]# iptables -A INPUT -i wlan0 -p tcp --dport 8384 -j ACCEPT

[root@kindle us]# ufw
-sh: ufw: not found
[root@kindle us]# tail -f syncthing.log
[IOBUZ] 2023/12/17 14:19:11 INFO: QUIC listener ([::]:22000) starting
[IOBUZ] 2023/12/17 14:19:11 INFO: TCP listener ([::]:22000) starting
[IOBUZ] 2023/12/17 14:19:11 INFO: Completed initial scan of sendreceive folder "Default Folder" (default)
[IOBUZ] 2023/12/17 14:19:11 INFO: GUI and API listening on 192.168.0.108:8384
[IOBUZ] 2023/12/17 14:19:11 INFO: Access the GUI via the following URL: http://192.168.0.108:8384/
[IOBUZ] 2023/12/17 14:19:11 INFO: My name is "kindle"
[IOBUZ] 2023/12/17 14:19:11 WARNING: Syncthing should not run as a privileged or system user. Please consider using a normal user account.
[IOBUZ] 2023/12/17 14:19:21 INFO: quic://0.0.0.0:22000 detected NAT type: Symmetric NAT
[IOBUZ] 2023/12/17 14:19:45 INFO: Detected 1 NAT service
[IOBUZ] 2023/12/17 14:20:19 INFO: Joined relay relay://5.161.229.93:22067

@arooni
Copy link
Author

arooni commented Dec 17, 2023

I keep getting address unreachable

@arooni
Copy link
Author

arooni commented Dec 18, 2023

Ok I did get it working; but I seem to have to manually run:

iptables -A INPUT -i wlan0 -p tcp --dport 8080 -j ACCEPT

It's not enough to run the menu option

                    {"name": "Open ALL Firewall ports", "priority": 4, "action": "iptables -A INPUT -i wlan0 -p tcp --dport 8080 -j ACCEPT ; iptables -A INPUT -i wlan0

{"name": "Open ALL Firewall ports", "priority": 4, "action": "iptables -A INPUT -i wlan0 -p tcp --dport 8080 -j ACCEPT ; } ... etc

I have to manually run it to see the admin interface.

@gutenye
Copy link
Owner

gutenye commented Dec 18, 2023

Isn't your manually run command iptables -A INPUT -i wlan0 -p tcp --dport 8080 -j ACCEPT is included in the Open ALL Firewall ports menu?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants