Squid with proxy

Protecting your Linux box
Post Reply
majidnazeer
Naik
Posts: 60
Joined: Wed Oct 05, 2005 12:37 pm

Squid with proxy

Post by majidnazeer »

salam

I use squid with transparent proxy. Everything work fine. When i use proxy in browser and open some website which use java applet could not be open with proxy. I want to allow these web site with proxy.


Thanks
Majid
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

the applet may need to connect directly with the server. you could set up a socks proxy, or enable nat.

socks is probably a better idea. java supports it.
majidnazeer
Naik
Posts: 60
Joined: Wed Oct 05, 2005 12:37 pm

Post by majidnazeer »

i have use another server of squid. which run java applet web site successfully with proxy. which server don't have any sock server.
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear majidnazeer,
Salam,

Below command will help you. If you still face any problem you can paste you configuration file along with your firewall rules.

# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

Best Regards.
Farrukh Ahmed
mudasir
Captain
Posts: 565
Joined: Tue Oct 17, 2006 5:23 am
Location: Dubai
Contact:

Post by mudasir »

Salam.

yes Farrukh bhai you are right. Masquerading the outgoing interface will make JAVA Applet work fine, and many other Apps.
Kind Regards
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
majidnazeer
Naik
Posts: 60
Joined: Wed Oct 05, 2005 12:37 pm

Post by majidnazeer »

Dear Farrukh!

I use your mention rule already. My firewall rule are under.

echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth1 -j MASQUERADE
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080

squid config file is same as other squid server config file which is web site are run perfectly.


Thanks
Majid

[/quote]
syedbilalmasaud
Naib Subedar
Posts: 347
Joined: Thu Aug 18, 2005 9:25 am
Location: Attock
Contact:

Post by syedbilalmasaud »

can you copy your firewall script so that problem is rectified eaisly
Cheers :)

:D B I L A L :D
Post Reply