Linux / UNIX Tech Support Forum
This is a discussion on Iptables and nat within the Networking, Firewalls and Security forums, part of the Mastering Servers category; I have a transparent proxy server setup. If it's http stuff, it sends it to port 3128 for caching. Otherwise ...
|
|||||||
| Networking, Firewalls and Security No it's not a secret. Talk about firewalls and security issues. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I have a transparent proxy server setup. If it's http stuff, it sends it to port 3128 for caching. Otherwise it goes on to the gateway. The issue arises in that some of us have access to a different network than others and there is no way to segregate the ip's right now since they all show as coming from the proxy server's ip.
How can I configure iptables to nat any non-http packets as the originating ip? For example: My personal computer is 192.168.1.100. My ip has access to the 192.168.2.0 network. The proxy server is 192.168.1.2. The gateway is 192.168.1.1. If attempt to ssh to 192.168.2.10, it gets denied at the gateway because it thinks the proxy is trying to access that network. I need to send the packets from the proxy masqueraded as my computer's ip so that the gateway will allow it. The originating ip is not always the same. We have about 200 machines. |
| Sponsored Links | ||
|
|
|
|||
|
The firewall is already configured to allow ssh. The issue is I need to forward the ssh packets on to the gateway and make it look like it's coming from the original ip, not the proxy's ip. The wrench in the system is that the originating ip can be many different ones. How can I spoof or masquerade as the original ip?
|
|
|||
|
Dear Friend,
for transparent squid,you need to redirect all your internal LAN 80 port traffic onto squid port 3128.It's very easy way. Another thing,by default,sshd service is allowed in linux.So,if you have implemented any "iptables" rule, then remove it or allow your sshd port 22 from inside LAN. Also,please send me your complete scenario,bcoz you have 2 networks i.e.192.168.1.0 & 2.0 ,So it is little bit confusing. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Iptables | amsreeku | Linux software | 3 | 19-07-2008 09:29 PM |
| Iptables | amsreeku | Linux software | 0 | 09-07-2008 07:30 PM |
| Iptables Help | santhosheph | CentOS / RHEL / Fedora | 0 | 09-06-2008 03:36 PM |
| iptables help | vitaminme | Networking, Firewalls and Security | 1 | 04-09-2007 02:42 AM |
| IPTABLES help | vasanth | Linux software | 1 | 09-03-2005 09:15 AM |