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

Restrict management interfaces to LAN #89

Open
darkk opened this issue Oct 27, 2016 · 0 comments
Open

Restrict management interfaces to LAN #89

darkk opened this issue Oct 27, 2016 · 0 comments

Comments

@darkk
Copy link
Member

darkk commented Oct 27, 2016

lepidopter may be exposed to Internet, it has ssh enabled with weak default password and authless ooniprobe web interface.

I can imagine several (unlikely, but imaginable) cases for the exposure:

  • User's ISP & router are IPv6-capable providing routable IPv6 address to lepidopter
  • User setting up port-forwarding carelessly to view nice ooni-probe wui from a 3G smartphone
  • User is ISP and lepidopter is given routable IPv4 address
  • Some unpredictable port-forwarding madness triggered by combination of systemd, Bonjour/avahi and uPNP

I can suggest couple of ways to restrict management interfaces:

  1. on network-change event triggered by dhclient/systemd/whatever parse output of ip -o addr and allow source IPs from known subnets
  2. on network-change event parse ip neight and deny source MACs of various routers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant