dsmi
(usa CentOS)
Enviado em 21/10/2013 - 21:32h
Buenas pessoal, tenho um servidor web rodando na rede 172.16.0.0, sobre o ip 172.16.0.3, na rede interna tenho acesso a ele perfeitamente porem gostaria de liberar acesso externo que seria na rede 19.168.0.0, abaixo seguem as regras do meu iptables
root@ubuntu:~# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- 192.168.0.0/24 anywhere state NEW tcp dpt:ssh
ACCEPT tcp -- 172.16.0.0/24 anywhere state NEW tcp dpt:ssh
ACCEPT icmp -- 192.168.0.0/24 anywhere state NEW
ACCEPT icmp -- 172.16.0.0/24 anywhere state NEW
ACCEPT tcp -- 192.168.0.0/24 anywhere state NEW tcp dpt:webmin
ACCEPT tcp -- 172.16.0.0/24 anywhere state NEW tcp dpt:webmin
ACCEPT tcp -- 172.16.0.0/24 anywhere state NEW tcp dpt:3128
ACCEPT udp -- 172.16.0.0/24 anywhere state NEW udp dpt:snmp
BLOCK_LOG all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT udp -- 172.16.0.0/24 anywhere state NEW udp dpt:snmp
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT tcp -- 172.16.0.0/24 anywhere state NEW tcp dpt:submission
ACCEPT tcp -- 192.168.0.0/24 anywhere state NEW tcp dpt:3389
BLOCK_LOG all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain BLOCK_LOG (2 references)
target prot opt source destination
LOG all -- anywhere anywhere LOG level warning prefix "Negado: "
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
e as regras de nat que tenho
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DNAT tcp -- anywhere 192.168.0.103 tcp dpt:3389 to:172.16.0.2:3389
REDIRECT tcp -- 172.16.0.0/24 anywhere tcp dpt:http redir ports 3128
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- anywhere anywhere
MASQUERADE all -- anywhere anywhere
o que devo liberar para a minha rede 192.168.0.0 acessar o meu servidor web na rede 172.16.0.0
tentei criar um redirecionamento igual ao do porta 3389 que utilizo para acessar externamente o meu ts mas não funcionou, alguém pode me ajudar??
grato