A
A
Astlos1452019-03-05 09:42:24
Debian
Astlos145, 2019-03-05 09:42:24

How to configure iptables to whitelist?

Hello, need help!
I'm trying to set up IpTables for a certain range of working machines and with a whitelisted site, maybe someone will tell me what I'm doing wrong, it's right, but all sites open exactly
iptables -I INPUT -m iprange --src-range 192.168.2.8-192.168. 2.25 -j ACCEPT

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2019-03-05
@Tabletko

why input? maybe it should be forward? and in order to block everything else, you need to either make the default policy FORWARD DROP or add a rule to forward drop at the end.

D
Dmitry, 2019-03-05
@hempy80

You have chosen the most hemorrhoidal way to restrict traffic - through iptables / netfilter, while not understanding how it works. Perhaps you should use specialized tools? Some Kerio Control or similar

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question