Direct Internet Connection For Client
Hi list,
i have installed proxy and gateway in the same system. How
can stop "Direct Connection" in web browser for internet for the clients(proxy). i have redirect 80 port to 8080. then also direct connection is happening from the clients. what sort of iptables rules i've to implement in my gateway firewall , that every time users should pass through proxy(8080). No Direct Connection........
Signature · 8 lines
Thanks & Regards, ______________ Tarak Ranjan E: [email protected] IM: [email protected] Online Learning|Certification|Learning Solutions : www.liqwidkrystal.com
В Вто, 13/11/2007 в 12:59 +0530, Tarak Ranjan пишет:
Quoted 7 lines
Hi list,
i have installed proxy and gateway in the same system. How
can stop "Direct Connection" in web browser for internet for the clients(proxy). i have redirect 80 port to 8080. then also direct connection is happening from the clients. what sort of iptables rules i've to implement in my gateway firewall , that every time users should pass through proxy(8080). No Direct Connection........
iptables -A FORWARD -i <client_iface> -o <inet_iface> -j REJECT --reject-with icmp-admin-prohibited
Signature · 1 line
Покотиленко Костик <[email protected]>
Quoted 10 lines
Hi list,
i have installed proxy and gateway in the same system.
How
can stop "Direct Connection" in web browser for internet for the clients(proxy). i have redirect 80 port to 8080. then also direct connection is happening from the clients. what sort of iptables rules
i've to implement in my gateway firewall , that every time users should
pass through proxy(8080). No Direct Connection........
When your clients can still connect when you redirect port 80 to 8080 then your redirection doesn't work.
This may be because packets hit another rule before the redirection. Or maybe you are redirecting to localhost which, (last time I tried) is not possible.
If I'm correct you've posted this question before and when I looked through that script I didn't have much trust in it. If you really want good advice, post your ruleset (and perhaps routing table). Otherwise, simply blocking internet access is done like this:
$ipt -A FORWARD -s <net_lan> -p tcp --dport 80 \
-j REJECT --reject-with tcp-reset
The actual place where you want to insert the rule depends on the script you're currently using. This will do nothing if packets are already accepted by a previous rule.
Grts,
Rob
Quoted 6 lines · Rob Sterenborg
Quoted 1 line
If I'm correct you've posted this question before and when I looked through that script I didn't have much trust in it. If you really want good advice, post your ruleset (and perhaps routing table). Otherwise, simply blocking internet access is done like this:
Quoted 7 lines
$ipt -A FORWARD -s <
net_lan> -p tcp --dport 80 \
-j REJECT --reject-with tcp-resetThe actual place where you want to insert the rule depends on the script you're currently using. This will do nothing if packets are already accepted by a previous rule.
Here is my iptables rules........ as an attachment