Skip to contentSkip to conversation

blocking only https access

DISCUSSION Leonardo Carneiro 2 participants 3 messages Jun 8, 2009

lore
Share & tools
lore
#0 lore raw

Hi everyone,

I have blocked outgoing connections using port 443 in my network to force everyone to use the webproxy. However, some non-http applications (like ShowMyPC) uses the port 443, and don't support proxies yet. I've contacted the support of the software to know with IPs do i have to allow it to make the program work properly, but they said there change their server IPs very often, so they recomend use the domain name to block.

I have readed a lot here in the list and in other places that i SHOULD NOT use domain names in iptables, cause it will result in a dns request to every packet that reachs that rule.

the question is: is there a way that i can identify only SSL packets that contain web content, so i can allow those who haven't, like the ShowMyPc packets?

Signature · 8 lines
*Leonardo de Souza Carneiro*
*Veltrac - Tecnologia em Logística.*
[email protected] <mailto:[email protected]>
http://www.veltrac.com.br <http://www.veltrac.com.br/>
/Fone Com.: (43)2105-5601/
/Av. Higienópolis 1601 Ed. Eurocenter Sl. 803/
/Londrina- PR/
/Cep: 86015-010/
#1 lore raw
Quoted 1 line

Hi everyone,

Hi,

Quoted 3 lines

I have readed a lot here in the list and in other places that i SHOULD NOT use domain names in iptables, cause it will result in a dns request to every packet that reachs that rule.

Not really. Domainname is resolved at the time of rule addition to a ruleset. Netfilter stores the destination address in numerical form.

You can use CRON to restart firewall every night or even every hour. This would allow you to have the current server addresses in a ruleset.

Cheers,
Marek Kierdelewicz

#2 lore raw

Marek Kierdelewicz escreveu:

Quoted 10 lines
Quoted 2 lines

Hi everyone,

Hi,

Quoted 3 lines

I have readed a lot here in the list and in other places that i SHOULD NOT use domain names in iptables, cause it will result in a dns request to every packet that reachs that rule.

Quoted 8 lines

Not really. Domainname is resolved at the time of rule addition to a ruleset. Netfilter stores the destination address in numerical form.

You can use CRON to restart firewall every night or even every hour. This would allow you to have the current server addresses in a ruleset.

Ok, tks Marek. I'll try this.

Quoted 8 lines

Cheers,
Marek Kierdelewicz
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html