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

Block IP Adress on Raspberry Pie #3376

Closed
jansiebks opened this issue May 27, 2024 · 2 comments
Closed

Block IP Adress on Raspberry Pie #3376

jansiebks opened this issue May 27, 2024 · 2 comments

Comments

@jansiebks
Copy link

Expected Behavior

Hello Community,
I provide a private IPTV server after my Raspberry PI with openmptcprouter. The server streams to the Internet via port forwarding. This works perfectly. I want to set the option to only allow IP addresses from 37.0.0.0 to 38.0.0.0 to access the server. Other IP addresses should be blocked.

Can you give me a tip on how I can set this up on the Raspberry Pie?

@Ysurac
Copy link
Owner

Ysurac commented May 27, 2024

On the VPS, in /etc/shorewall/rules find the line with the forward rule, and in net column, replace net by net:37.0.0.0.-38.0.0.0 Then systemctl restart shorewall

Copy link

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days

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

2 participants