- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Proxy server setup
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2002 12:55 PM
тАО03-25-2002 12:55 PM
Proxy server setup
I had this set up once before but have lost the instructions. I think I used an application called "pump". Haven't been able to find the internet location where I got the instructions.
Can anyone give me a clue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2002 01:36 PM
тАО03-25-2002 01:36 PM
Re: Proxy server setup
My proxy server has two eithernet cards one connected to my local LAN and the other to the internet through a StarBand 360 dish modem. I can duel boot the proxy between Windows 98 and RedHat Linux 7.2. Proxy works with windows WinProxy, not yet with Linux.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2002 03:22 PM
тАО03-25-2002 03:22 PM
Re: Proxy server setup
I think your question needs an explanation.
Using your hardware configuration (2 lan cards), there are 2 ways to do what you want :
1. Proxy configuration
With this method, your Linux box runs a special software that is specifically designed to relay requests from the "intranet" (your windows boxes) to the "internet".
There are many proxy softwares, depending on what you want to relay. For example, "squid" (http://www.squid-cache.org) is the best proxy software for http/ftp requests.
2. Simple router
In this configuration, your Linux box with 2 lan cards acts as a router (a gateway). Therefore, it relays IP packets from one world to another (from internet to intranet and vice-versa).
Both methods are secure and also both methods can be unsecure if you don't know how to do things the right way, and at last both methods can get very complex depending on what level of security you want to reach.
For the 1st method, the best way is to read the documentation of the proxy software (in case of squid : www.squid-cache.org).
To get the 2nd method working well, you need some network security basic knowledge.
Quick'n dirty : suppose that eth0 is connected to "intranet" and "eth1" is on "internet" :
=> Use this (optional) firewall rule to prevent incoming connctions
iptables -t filter -A INPUT -i eth1 -m state --state NEW,INVALID -j DROP
=> Use this (mandatory) firewall rule to "translate" your internal IP addresses into IPs compatible with the Internet rules :
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
=> Use this command to activate routing between internal and external worlds :
echo "1" >/proc/sys/net/ipv4/ip_forward
Of course, if you need some explanations on this, do not hesitate to post another question.
A good reference for security is an O'Reilly book :
Building Internet Firewalls (2nd Edition)
by Elizabeth D. Zwicky, Simon Cooper, D. Brent Chapman, Deborah Russell
Good luck.
Kodjo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2002 04:25 PM
тАО03-25-2002 04:25 PM
Re: Proxy server setup
When I did this before it only took three lines of code in one of the startup scripts. Thanks for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2002 05:29 PM
тАО03-25-2002 05:29 PM
Re: Proxy server setup
The answer you are after is right there in Kodjo's answer, it just covers the newer iptables.
Run the two iptables commands he has given you, then run the one starting echo "1" >
Presto, you will have masquerading, which is probably all you want.
You can work out how to make this survive reboots (hint: use the proper RH config files, don't just stick them on the end of rc.local)
- Lindsay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2002 06:53 PM
тАО03-25-2002 06:53 PM
Re: Proxy server setup
RH 7.2 comes out of the box with only IP chains enabled -- you have to go in and reconfigure the kernel to get iptables up and running.
I appreciate your situation, I keep on forgetting which commands I used where to get my network setup the way I liked. Iptables is definately a better firewalling/nat solution than ipchains as it will allow for true nat without having to run any additional programs. Plenty of information out there on how to set things up:
http://www.linuxdocs.org
http://www.netfilter.org
or if you want to download a sample firewall package, try
http://freshmeat.net and search on firewall.
Best regards.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2002 05:45 AM
тАО03-26-2002 05:45 AM