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

Enhancement SSH via WWAN #136

Closed
unclelez opened this issue Jan 27, 2023 · 4 comments
Closed

Enhancement SSH via WWAN #136

unclelez opened this issue Jan 27, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@unclelez
Copy link

unclelez commented Jan 27, 2023

My sim card has a static IP, and I was hoping to be able to SSH into my router using it, but drop dear isn't configured to listen to that interface.

Are you able to add the WWAN interface to dropbear?

`
4420 root 2484 S /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -j -p 192.168.0.1:22 -I 600 -K 300 -T 3

10647 root 2612 S /usr/sbin/dropbear -F -P /var/run/dropbear.2.pid -j -p xx.xxx.xxx.xxx:22 -I 600 -K 300 -T 3

12838 root 3384 S grep dropbear

19807 root 2484 S /usr/sbin/dropbear -F -P /var/run/dropbear.2.pid -j -p xx.xxx.xxx.xxx:22 -I 600 -K 300 -T 3

24431 root 2612 S /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -j -p 192.168.0.1:22 -I 600 -K 300 -T 3`

@seud0nym
Copy link
Owner

The existing dropbear configuration on the System screen only deals with the WAN interface. It shouldn't be too difficult to add WWAN s well.

I will have a look.

@seud0nym seud0nym added the enhancement New feature or request label Jan 27, 2023
@seud0nym
Copy link
Owner

Hmm. It is a bit more complicated than I first thought. There are complexities with firewall rules if I just add another dropbear configuration for the WWAN interface.

It might be better (and much easier for me) to just give the option to use either WAN or WWAN for the external SSH connection.

Can you try this and make sure it works:

uci set dropbear.wan.Interface='wwan'
uci commit dropbear
/etc/init.d/dropbear restart

The other major concern that I have is that my understanding was that all mobile providers use CGNAT, so you might not be able to access it anyway...

@unclelez
Copy link
Author

unclelez commented Feb 1, 2023

Thank you, I managed to get both working in dropbear

@unclelez unclelez closed this as completed Feb 1, 2023
@seud0nym
Copy link
Owner

seud0nym commented Feb 1, 2023

Do you mean that changing the interface worked?

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

No branches or pull requests

2 participants