D
Но ценник.... Ох.
https://moxa.ru/shop/ethernet/dsl/iex-402-shdsl/
Size: a a a
D
АМ
IE
И
D
IE
D
D
G
G
p
p
АМ
p
MM
iptables --append OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
# create a new chain
iptables --new-chain chk_apache_user
# use new chain to process packets generated by apache
iptables -A OUTPUT -m owner --uid-owner apache -j chk_apache_user
# Allow 143 (IMAP) and 25 so that webmail works :)
iptables -A chk_apache_user -p tcp --syn -d 127.0.0.1 --dport 143 -j RETURN
iptables -A chk_apache_user -p tcp --syn -d 127.0.0.1 --dport 25 -j RETURN
# reject everything else and stop hackers downloading code into our server
iptables -A chk_apache_user -j REJECT
∀
MM
MM
# create a new chainно что-то мне кажется, что я что-то забыл разрешить.
iptables --new-chain chk_qemu_user
# use new chain to process packets generated by qemu user. Add it!!!
iptables -A OUTPUT -m owner --uid-owner qemu -j chk_qemu_user
# разрешаем внешние запросы к виртуалке
iptables -A chk_qemu_user -m state --state ESTABLISHED,RELATED -j RETURN
# Запрещаем пакеты к нашим подсетям и к локальным сервисам
iptables -A chk_qemu_user -d 127.0.0.1/8 -j DROP
iptables -A chk_qemu_user -d 10.0.0.1/8 -j DROP
iptables -A chk_qemu_user -d 192.168.0.1/16 -j DROP
# запрещаем все порты кроме 80 и 443
iptables -A chk_qemu_user -p tcp -dport 80 -j RETURN
iptables -A chk_qemu_user -p tcp -dport 443 -j RETURN
# Всё остальное запрещаем
iptables -A chk_qemu_user -j DROP
# ipv6 от qemu пока запрещаем полностью, хотя лучше переделать
ip6tables -A OUTPUT -m owner --uid-owner qemu -j DROP
∀
∀
# create a new chainно что-то мне кажется, что я что-то забыл разрешить.
iptables --new-chain chk_qemu_user
# use new chain to process packets generated by qemu user. Add it!!!
iptables -A OUTPUT -m owner --uid-owner qemu -j chk_qemu_user
# разрешаем внешние запросы к виртуалке
iptables -A chk_qemu_user -m state --state ESTABLISHED,RELATED -j RETURN
# Запрещаем пакеты к нашим подсетям и к локальным сервисам
iptables -A chk_qemu_user -d 127.0.0.1/8 -j DROP
iptables -A chk_qemu_user -d 10.0.0.1/8 -j DROP
iptables -A chk_qemu_user -d 192.168.0.1/16 -j DROP
# запрещаем все порты кроме 80 и 443
iptables -A chk_qemu_user -p tcp -dport 80 -j RETURN
iptables -A chk_qemu_user -p tcp -dport 443 -j RETURN
# Всё остальное запрещаем
iptables -A chk_qemu_user -j DROP
# ipv6 от qemu пока запрещаем полностью, хотя лучше переделать
ip6tables -A OUTPUT -m owner --uid-owner qemu -j DROP