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
135 views 0 comments
by anonymous

Hello

I want to configure a firewall rule, that blocks the traffic from a specific ip address (192.168.31.120) to the wan. But only when the RUT955 is connected to the internet trough the interface MOB1S1A1 (SIM Card). 

I tried to make a costom rule. First I tried to block all traffic from 192.168.31.120. But I already failed with that. When I saved the costom rule (Network > Firewall > Costom Rules) all devices no longer have internet access.

iptables -A FORWARD -s 192.168.31.120 -j DROP

This is the only rule I added. After I press reset all devices can connect to the internet again.

Can you help me to find the error? And what do I have to add, that only the traffic trough the interface MOB1S1A1 will be blocked?

Thank you.

1 Answer

0 votes
by anonymous

Hello,

In your case, I would recommend using Traffic rules feature: https://wiki.teltonika-networks.com/view/RUT955_Firewall#Traffic_Rules

Here is an example:

Regards.