LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 01-13-2005, 01:19 AM   #1
myheart
LQ Newbie
 
Registered: Oct 2004
Posts: 17

Rep: Reputation: 0
transparent proxy that automaticly configure a client gateway


anyone have an idea how to configure a transparent proxy that automaticly configure a client gateway
 
Old 01-19-2005, 05:35 AM   #2
rana28
LQ Newbie
 
Registered: Jan 2005
Location: India
Distribution: red hat 9.0
Posts: 3

Rep: Reputation: 0
Step one > Create a file rc.nat in /etc/rc.d/ then put the follwing code
iptables=/sbin/iptables
iptables --flush -t nat
iptables --table nat --append POSTROUTING --out-interface ppp0 -j MASQUERADE
iptables --append FORWARD --in-interface eth0 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128

now make it excutable by the command
chmod 755 /etc/rc.d/rc.nat

Now u add the following lines in your /etc/rc.d/rc.local file, so that every time u start yourcomputer it get executed automatically.
 
Old 01-19-2005, 07:44 PM   #3
myheart
LQ Newbie
 
Registered: Oct 2004
Posts: 17

Original Poster
Rep: Reputation: 0
thanks man for ur help.....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
configure squid proxy with microsoft proxy as a parent proxy nintykola Linux - Software 1 08-28-2007 01:38 AM
Client Configuration for Transparent proxy adham1sa Linux - Networking 2 12-28-2004 11:54 PM
Transparent Proxy ilnli Linux - Networking 3 10-18-2004 06:01 PM
how to configure proxy client in console? simonhuan Linux - Networking 2 04-13-2004 10:10 PM
How to make Transparent gateway? sarin Linux - Networking 4 07-19-2002 08:33 AM


All times are GMT -5. The time now is 01:35 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration