November 25, 2024, 04:38:02 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Setting Proxy server in Ubuntu  (Read 8754 times)

Offline rasheedahme27

  • New Member
  • Posts: 3
Setting Proxy server in Ubuntu
« on: July 15, 2010, 02:06:43 PM »
Hi Fiends,

please help me to set up proxy server on my ubuntu desktop..

i need to forward my all Pc's traffic through this desktop (all these PC's in same network)

my TL said to do this concept using iptables. on Ubuntu desktop.

sorry for my bad english..

Thanks  :)

Offline kaushalpatel1982

  • LST CareTaker
  • Linux Learner
  • *****
  • Posts: 87
Re: Setting Proxy server in Ubuntu
« Reply #1 on: July 17, 2010, 10:42:00 AM »
1. Open squid configuration file.
2. create an ACL for your network
3. Allow that ACL to access internet.
4. Restart squid services.
4. Setup net forwarding in /etc/sysctl.conf
5. Configure IPTables to forward rest of the traffic to internet
       # iptables -t nat -I POSTROUTING -o <external interface> -j MASQUERADE



Offline rasheedahme27

  • New Member
  • Posts: 3
Re: Setting Proxy server in Ubuntu
« Reply #2 on: July 18, 2010, 04:34:41 AM »
Thanks kaushalpatel1982.

here external interface means. i am using internal networks only..in this same network i have a proxy server

iptables -t nat -I POSTROUTING -o <external interface> -j MASQUERADE