LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-15-2008, 04:17 AM   #1
eliufoo
Member
 
Registered: Oct 2007
Posts: 71

Rep: Reputation: 15
Linux Proxy: Public to LAN


Hi All,

I need setup proxy process on my machine(Linux FC6) that has public Internet access to allow a remote server to the machine. And then enable the proxy to forward the traffic from the remote machine to another secure LAN network system. The remote server can neither establish a direct connection to the SECURE LAN nor tunneling it traffic.

Please advised with a solution or setup that would work with the above mechanics.
 
Old 04-15-2008, 10:54 PM   #2
trryhend
Member
 
Registered: Oct 2007
Posts: 42

Rep: Reputation: 15
Quote:
Originally Posted by eliufoo View Post
Hi All,

I need setup proxy process on my machine(Linux FC6) that has public Internet access to allow a remote server to the machine. And then enable the proxy to forward the traffic from the remote machine to another secure LAN network system. The remote server can neither establish a direct connection to the SECURE LAN nor tunneling it traffic.

Please advised with a solution or setup that would work with the above mechanics.

If firestarter is installed, use it, should be rather easy to share the connection with an inside LAN. (If sharing the Internet is all you need.)

Or, if you prefer doing things manually, see:
http://lindesk.com/2007/04/internet-...sing-iptables/
(Again, if sharing the connection is all you need.)

If you do in fact need a proxy caching server for your Web clients, see:
http://www.icewalkers.com/rpm/squid/...uid-25235.html
 
Old 04-16-2008, 08:58 PM   #3
eaglek96
LQ Newbie
 
Registered: Feb 2008
Location: Massachusetts
Distribution: Debian Linux and FreeBSD
Posts: 12

Rep: Reputation: 0
I'm thinking squid proxy is a good solution. Maybe set that up as a "reverse proxy" to get what you desire. It's a quick and easy setup if you use a package manager to install it.

What protocol is this application using?
 
Old 04-26-2008, 05:20 AM   #4
eliufoo
Member
 
Registered: Oct 2007
Posts: 71

Original Poster
Rep: Reputation: 15
Hi,

Port forwarding would work for above setup. But, I have the following problem in setting it up.

I have two interfaces configured (Internet & LAN). I want traffic from a specefic host to be routed to a specific server.

My external interface is eth1 (197.41.39.55) & internal interface eth0 (192.168.10.0/24) that has several servers and networking equipments that needs to be reached by external hosts. I intend to route traffic from host 80.223.75.169 destined197.41.39.55 on port 8080, to be forwarded to 192.168.10.5 port 80. According to my internet search, below configuration should work:


- iptables -t nat -A PREROUTING -p tcp -i eth1 -d 197.41.39.55 --dport 8080 -j DNAT --to 192.168.10.5
- iptables -A FORWARD -p tcp -i eth0 -d 192.168.10.5 --dport 80 -j ACCEPT
- iptables -t nat -A PREROUTING -j LOG --log-level debug --log-prefix '***PREROUTING***'

I have implemented the above configuration but nothing works. I have also completely FLUSHED my firewall (for testing) and loaded the NAT module. And still doesn't work. Also, apart from the log file (messages), how can i troubleshoot iptable configuration.

Assist please:

Elly
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
OT: Looking For Free Public Proxy btbx General 2 03-15-2008 05:15 PM
sharing VPN access with lan + after vpn connected unable to ping lan/public ip xxx_anuj_xxx Linux - Networking 1 03-14-2008 02:50 AM
Squid as Reverse Proxy and LAN proxy? zivota Linux - Security 2 02-26-2007 05:00 PM
Linux Bricktop-->XP box-->LAN-->Proxy-->The World - but how? MooUK Linux - Networking 2 10-09-2005 03:51 PM
Can my Linux box be used as a transparent proxy on the LAN side of my router? Steve2001 Linux - Networking 5 02-01-2005 11:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:51 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration