Ir ao conteúdo
  • Cadastre-se

Duvida Servidor Windows atras de Servidor com Iptables+squid


serva

Posts recomendados

Estou com o seguinte problema na minha empresa. Paguei a um ano atras para montar um servidor linux na época Conectiva 10 +iptables +squid com autenticação nas estações. Não sei muita coisa de linux. Adicionei um servidor um windows esse ano atrás do servidor linux por causa do firewall.

Preciso que um software para windows do servidor consiga acessar a internet. Essse software não tem como configurar proxy. Como faço para que o ip do servidor windows consiga acessar a internet sem passar pelo proxy ? Pensei no seguinte adicionar essa linha no iptables.

iptables -A FORWARD -s 192.168.2.2 -j ACCEPT

ou

iptables -A FORWARD -s 192.168.2.2 -d pop.terra.com.br -j ACCEPT

iptables -A FORWARD -s 192.168.2.2 -d smtp.terra.com.br -j ACCEPT

Alguma dessas duas opções funcionaria ? :muro:

Não sei onde se localiza o arquivo de configuração do iptables então executei o seguinte comando.

[root@empresa root]# iptables -L

Chain INPUT (policy DROP)

target prot opt source destination

ACCEPT all -- anywhere anywhere

ACCEPT all -- 192.168.2.0/24 anywhere

DROP all -- 192.168.2.0/24 anywhere

ACCEPT all -- anywhere 10.1.1.4

ACCEPT all -- anywhere 10.1.1.4

state RELATED,ESTABLISHED

DROP all -- anywhere 10.1.1.4

state INVALID

DROP all -- anywhere anywhere

DROP tcp -- anywhere anywhere

tcp flags:FIN,SYN,RST,PSH,ACK,URG/NONE

DROP tcp -- anywhere anywhere

tcp flags:FIN,SYN/FIN,SYN

DROP tcp -- anywhere anywhere

tcp flags:SYN,RST/SYN,RST

DROP tcp -- anywhere anywhere

tcp flags:FIN,RST/FIN,RST

DROP tcp -- anywhere anywhere

tcp flags:FIN,ACK/FIN

DROP tcp -- anywhere anywhere

tcp flags:PSH,ACK/PSH

DROP tcp -- anywhere anywhere

tcp flags:ACK,URG/URG

Chain FORWARD (policy DROP)

target prot opt source destination

DROP icmp -- anywhere

192.168.2.0/24 icmp any

ACCEPT all -- anywhere anywhere

state RELATED,ESTABLISHED

DROP all -- anywhere anywhere

state INVALID

ACCEPT all -- anywhere anywhere

ACCEPT all -f anywhere anywhere

DROP all -- anywhere anywhere

DROP tcp -- anywhere anywhere

tcp flags:FIN,SYN,RST,PSH,ACK,URG/NONE

DROP tcp -- anywhere anywhere

tcp flags:FIN,SYN/FIN,SYN

DROP tcp -- anywhere anywhere

tcp flags:SYN,RST/SYN,RST

DROP tcp -- anywhere anywhere

tcp flags:FIN,RST/FIN,RST

DROP tcp -- anywhere anywhere

tcp flags:FIN,ACK/FIN

DROP tcp -- anywhere anywhere

tcp flags:PSH,ACK/PSH

DROP tcp -- anywhere anywhere

tcp flags:ACK,URG/URG

Chain OUTPUT (policy DROP)

target prot opt source destination

ACCEPT all -- anywhere anywhere

ACCEPT all -- 192.168.2.0/24

192.168.2.0/24

DROP all -- anywhere

192.168.2.0/24

ACCEPT all -- 10.1.1.4 anywhere

DROP all -- anywhere anywhere

[root@empresa root]#

Se alguem puder me ajudar.

Obrigado

Link para o comentário
Compartilhar em outros sites

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Sobre o Clube do Hardware

No ar desde 1996, o Clube do Hardware é uma das maiores, mais antigas e mais respeitadas comunidades sobre tecnologia do Brasil. Leia mais

Direitos autorais

Não permitimos a cópia ou reprodução do conteúdo do nosso site, fórum, newsletters e redes sociais, mesmo citando-se a fonte. Leia mais

×
×
  • Criar novo...

 

GRÁTIS: ebook Redes Wi-Fi – 2ª Edição

EBOOK GRÁTIS!

CLIQUE AQUI E BAIXE AGORA MESMO!