Squid with proxy

Protecting your Linux box

Squid with proxy

Postby majidnazeer » Fri Jun 08, 2007 10:36 am

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
majidnazeer
Naik
 
Posts: 60
Joined: Wed Oct 05, 2005 12:37 pm

Postby lambda » Fri Jun 08, 2007 11:02 am

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.
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Postby majidnazeer » Fri Jun 08, 2007 12:54 pm

i have use another server of squid. which run java applet web site successfully with proxy. which server don't have any sock server.
majidnazeer
Naik
 
Posts: 60
Joined: Wed Oct 05, 2005 12:37 pm

Re:

Postby LinuxFreaK » Sat Jun 09, 2007 7:17 am

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
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Postby mudasir » Sun Jun 10, 2007 2:44 pm

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
mudasir
Captain
 
Posts: 565
Joined: Tue Oct 17, 2006 5:23 am
Website: http://www.crystalnetworks.org
Location: Dubai

Postby majidnazeer » Thu Jun 14, 2007 11:04 am

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]
majidnazeer
Naik
 
Posts: 60
Joined: Wed Oct 05, 2005 12:37 pm

Postby syedbilalmasaud » Wed Jul 25, 2007 3:02 pm

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

:D B I L A L :D
syedbilalmasaud
Naib Subedar
 
Posts: 347
Joined: Thu Aug 18, 2005 9:25 am
WLM: bm1984@hotmail.com
Yahoo Messenger: syedbilalmasaud@yahoo.com
Location: Attock


Return to “%s” Security

Who is online

Users browsing this forum: No registered users and 2 guests

cron