FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
536 views 2 comments
by anonymous
Hi Folks,

I'm having a hard time to block my traffic outgoing to a specific address and network.

I was wondering if someone make it work ?

Im using the following commands.:

oot@Teltonika-RUT950:~# iptables -A INPUT -s securitypreview.zscaler.com -j DROP
root@Teltonika-RUT950:~# iptables -A INPUT -s gateway.zscalerthree.net -j DROP
root@Teltonika-RUT950:~# iptables -A INPUT -s ip.zscaler.com -j DROP
root@Teltonika-RUT950:~# iptables -A OUTPUT -d securitypreview.zscaler.com -j DROP
root@Teltonika-RUT950:~# iptables -A OUTPUT -d gateway.zscalerthree.net -j DROP
root@Teltonika-RUT950:~# iptables -A OUTPUT -d ip.zscaler.com -j DROP
root@Teltonika-RUT950:~# iptables -A OUTPUT -d 185.46.212.88/32 -j DROP

Any help is welcome.

1 Answer

0 votes
by anonymous

Hello,

Try:

iptables -A FORWARD -d securitypreview.zscaler.com -j DROP
iptables -A FORWARD -d gateway.zscalerthree.net -j DROP
iptables -A FORWARD -d ip.zscaler.com -j DROP
iptables -A FORWARD -d 185.46.212.88/32 -j DROP

Regards,


by anonymous
I’ve tried but even on that way it doesn’t block that networks.

Do I need to reboot the router ? I’ve executed the commands from the cli.

Please advise
by anonymous

Then there must be rule before tem allowing this traffic. Delete and re-create them using a different option:

iptables -D FORWARD -d securitypreview.zscaler.com -j DROP
iptables -I FORWARD -d gateway.zscalerthree.net -j DROP
...