2016-08-30 3 views
-1

Iptables -L выходов:Прозрачный брандмауэр не может получить доступ к HTTP и HTTPS

[[email protected] ~]# iptables -L 
Chain INPUT (policy ACCEPT) 
target  prot opt source    destination   

Chain FORWARD (policy DROP) 
target  prot opt source    destination   
ACCEPT  all -- anywhere    anywhere   state RELATED,ESTABLISHED 
DROP  all -- anywhere    anywhere   state INVALID 
ACCEPT  udp -- anywhere    anywhere   udp spt:bootpc dpt:bootps 
ACCEPT  udp -- anywhere    anywhere   udp spt:bootps dpt:bootpc 
ACCEPT  tcp -- anywhere    anywhere   tcp dpt:http 
ACCEPT  tcp -- anywhere    anywhere   tcp dpt:https 
ACCEPT  icmp -- anywhere    anywhere    
ACCEPT  all -- anywhere    anywhere   PHYSDEV match --physdev-in eth0 
ACCEPT  tcp -- 172.16.16.113  anywhere   tcp dpt:http 
ACCEPT  tcp -- 172.16.16.113  anywhere   tcp dpt:https 

Chain OUTPUT (policy ACCEPT) 
target  prot opt source    destination 

здесь прозрачная установка моста Linux: eth0 подключен к коммутатору и eth1 подключен к испытательной машине (172.16.16.113). Я не могу получить доступ к веб-сайту http по сайту на тестовом компьютере, но могу получить доступ к тому же сайту по IP-адресу. сайт HTTPS не могут быть доступны либо

+0

вы добавляете выход с маскарад? – FOP

ответ

0

добавить вперед, то DNS нормально
Iptables -A FORWARD -p TCP -s 172.16.16.0/24 --dport 53 -j ACCEPT

Смежные вопросы