There is a Linux (Ubuntu) server; in the server, you need to filter the request by IP list (iplist.txt) more accurately pass all outgoing and incoming traffic by iplist.txt (IP list) and block the rest! Thank you in advance! On the Internet, I found something, somehow redid it, but it just wasn’t ((
iptables -P INPUT -j DROP iptables -P OUTPUT -j DROP Further here ipset
sudo wget -O /var/whitelist.txt http://kakoy-ta.sayt/whitelist.txt while read ip; do sudo ipset add WHITE_LIST $ip done < /var/whitelist.tx and ipset gives an error
ipset v6.30: The set with the given name does not exist how to add all to iptable !?
iptables -A INPUT --src-list WHITE_LIST -j ALLOW iptables -A OUTPUT --dst-list WHITE_LIST -j ALLOW
INTRODUCTIONjust shows what and what to call. - 0andriy