Skip to contentSkip to conversation

https permit/deny

DISCUSSION vects 3 participants 6 messages Feb 11, 2007 – Feb 13, 2007

lore
Share & tools
lore

vects

author
#0 lore raw

Hi,

I'm looking for solution of the next problem, I have to enable/disable an access to list of https web servers, I don't know in advance IPs of them, permit rule must be based of the url user typed in location bar.

Is possible to do that by iptables and extentions? I thought about l7 filter.

Any help/hints will be appreciated very much.

Thanks, Alexc.

author
#2 lore raw
In reply to Leonardo Rodrigues Magalhães
Quoted 7 lines · Leonardo Rodrigues Magalhães

Never used l7 for doing that kind of filtering, dont know if it's
possible.

Anyway, if you need some hard filtering based on URLs, both http and
https, i would recommend that you use an http/https proxy, just like squid, for doing that.

Quoted 5 lines

Completly block https (TCP/443) traffic with iptables and get your
clients for use an http/https proxy and does the filtering there. I'm pretty convinced it will be easier and you'll have a lot more flexibility on the rules. Squid's ACLs are pretty flexible, you should give it a try.

Does it work in transparent mode ( I mean for https)?
I just can't tell all clients to use squid by phone, https filtering must be hidden for them. As I know the latest squid supports totally transparent mode, is that working for https also?

Thanks, Alexc.

Quoted 14 lines

vects escreveu:

Quoted 10 lines

Hi,

I'm looking for solution of the next problem, I have to enable/disable an access to list of https web servers, I don't know in advance IPs of them, permit rule must be based of the url user typed in location bar.

Is possible to do that by iptables and extentions? I thought about l7 filter.

#1 lore raw
In reply to vects

Never used l7 for doing that kind of filtering, dont know if it's
possible.

Anyway, if you need some hard filtering based on URLs, both http and
https, i would recommend that you use an http/https proxy, just like squid, for doing that.

Completly block https (TCP/443) traffic with iptables and get your
clients for use an http/https proxy and does the filtering there. I'm pretty convinced it will be easier and you'll have a lot more flexibility on the rules. Squid's ACLs are pretty flexible, you should give it a try.

vects escreveu:

Quoted 10 lines

Hi,

I'm looking for solution of the next problem, I have to enable/disable an access to list of https web servers, I don't know in advance IPs of them, permit rule must be based of the url user typed in location bar.

Is possible to do that by iptables and extentions? I thought about l7 filter.

Signature · 8 lines
	Atenciosamente / Sincerily,
	Leonardo Rodrigues
	Solutti Tecnologia
	http://www.solutti.com.br

	Minha armadilha de SPAM, NÃO mandem email
	[email protected]
	My SPAMTRAP, do not email it
#3 lore raw
In reply to vects

vects escreveu:

Quoted 8 lines · Leonardo Rodrigues Magalhães
Quoted 7 lines

Never used l7 for doing that kind of filtering, dont know if it's
possible.

Anyway, if you need some hard filtering based on URLs, both http and
https, i would recommend that you use an http/https proxy, just like squid, for doing that.

Quoted 7 lines
Quoted 3 lines

Completly block https (TCP/443) traffic with iptables and get your
clients for use an http/https proxy and does the filtering there. I'm pretty convinced it will be easier and you'll have a lot more flexibility on the rules. Squid's ACLs are pretty flexible, you should give it a try.

Does it work in transparent mode ( I mean for https)? I just can't tell all clients to use squid by phone, https filtering must be hidden for them. As I know the latest squid supports totally
transparent mode, is that working for https also?

httpS simply cant be treated in completly transparent modes, because
that would be detected as a 'man-in-the-middle' attack by the browser and would break the end-to-end criptography that SSL/TLS uses.

http can be completly transparent, but https cannot.

Anyway, if you search the archives, you'll find that it's a common
opinion that iptables it not the right place, even with layer7 patches, to do complex layer7 filtering. It can even do some application filtering, but it's not supposed for replacing application proxy tools, just like squid for http/https. Complex rules can be applied in an easier and more flexible way in the application layer, with an appropriate application proxy.

Signature · 8 lines
	Atenciosamente / Sincerily,
	Leonardo Rodrigues
	Solutti Tecnologia
	http://www.solutti.com.br

	Minha armadilha de SPAM, NÃO mandem email
	[email protected]
	My SPAMTRAP, do not email it
author
#4 lore raw
Quoted 23 lines · Leonardo Rodrigues Magalhães

vects escreveu:

Quoted 15 lines · Leonardo Rodrigues Magalhães
Quoted 8 lines

Never used l7 for doing that kind of filtering, dont know if it's
possible.

Anyway, if you need some hard filtering based on URLs, both http and
https, i would recommend that you use an http/https proxy, just like squid, for doing that.

Quoted 6 lines

Completly block https (TCP/443) traffic with iptables and get your
clients for use an http/https proxy and does the filtering there. I'm pretty convinced it will be easier and you'll have a lot more flexibility on the rules. Squid's ACLs are pretty flexible, you should give it a try.

Quoted 5 lines

Does it work in transparent mode ( I mean for https)?
I just can't tell all clients to use squid by phone, https filtering must be hidden for them. As I know the latest squid supports totally transparent mode, is that working for https also?

Quoted 3 lines

httpS simply cant be treated in completly transparent modes, because
that would be detected as a 'man-in-the-middle' attack by the browser and would break the end-to-end criptography that SSL/TLS uses.

agree.

Quoted 2 lines

http can be completly transparent, but https cannot.

I have to find some other solution for my task, sounds like iptables with l7 is the one for me.
Does somebody know another list I can ask for help?

Quoted 8 lines

Anyway, if you search the archives, you'll find that it's a common
opinion that iptables it not the right place, even with layer7 patches, to do complex layer7 filtering. It can even do some application filtering, but it's not supposed for replacing application proxy tools, just like squid for http/https. Complex rules can be applied in an easier and more flexible way in the application layer, with an appropriate application proxy.

As I said I have some condition, I can't contact customers and ask them to define proxy server, this prevents me to use application proxy for https.

Thanks, Alexc

#5 lore raw
Quoted 3 lines · vects

As I said I have some condition, I can't contact customers and ask them to define proxy server, this prevents me to use application proxy for https.

Why don't you just setup an automatic proxy configuration? All, the customer needs to do than, is to select "automatic proxy discovery" in his/her Browser. The Internet Explorer, which most people tend to use anyway, already has this preconfigured.