Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


[Help] iptables range of IP's
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

[Help] iptables range of IP's

Okay I need some help with iptables. Running Incredible PBX so much better than FreePBX so far! My only issue is being able to access it OUTSIDE of my home connection. Seems only itself and my home IP are whitelisted. I'm fine going the white list route, BUT I also need to be able to access it via 3G & LTE, Only problem is that is not static. I just access to the sip ports etc no web access or anything.

How would I go about allowing a range of IP's? like say 109.xxx.xxx.xxx

Or is there a better way to avoid this? (Don't think a VPN would be reliable mobile wise)

Thanks.

Comments

  • raindog308raindog308 Administrator, Veteran

    You can specify a range as 109.0.0.0/8

    e.g.,

    iptables -A INPUT -p tcp (or udp) --dport (whatever port) -s 109.0.0.0/8 -j ACCEPT
    

    Not tested :-)

    Thanked by 1HuntersPad
  • It seems to me quite dangerous to open connection for the whole operator network. I'd go with port knocking instead...

  • Checkout zerotier.

Sign In or Register to comment.