Quantcast
Channel: Linux.org.ru: Форум (тех. форум)
Viewing all articles
Browse latest Browse all 74628

ipset && iptables

$
0
0

Всем привет)

Немогу понять почему не работает:

ipset -N authusers macipmap --network 192.168.0.0/16
ipset add authusers 192.168.0.103,08:00:27:24:ea:4a

iptables -A INPUT -t filter -j ACCEPT
iptables -A OUTPUT -t filter -j ACCEPT
iptables -A FORWARD -t filter -j ACCEPT
iptables -A PREROUTING -t nat -p tcp -i br-lan --dport 80 -m set ! --match-set authusers src -j DNAT --to-destination 192.168.0.102:80

по идее трафик хостов которые не лежат в authusers должен идти на 192.168.0.102:80, но у меня получается на оборот)

В чем ошибка???

 , ,


Viewing all articles
Browse latest Browse all 74628

Latest Images

Trending Articles