HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: redirect the whole HTTP traffic using proxy
Operating System - Linux
1830133
Members
2783
Online
109999
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
09-30-2006 03:29 AM
09-30-2006 03:29 AM
redirect the whole HTTP traffic using proxy
hi
howto redirect the whole HTTP traffic using proxy ?
I have tried using iptables:
iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 192.168.0.5:3128
but it doesn't work !
this machine is a vpn gateway and should redirect the whole HTTP traffic to the proxy.
p.s
I don't have a transparent proxy.
greetings
chris
howto redirect the whole HTTP traffic using proxy ?
I have tried using iptables:
iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 192.168.0.5:3128
but it doesn't work !
this machine is a vpn gateway and should redirect the whole HTTP traffic to the proxy.
p.s
I don't have a transparent proxy.
greetings
chris
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2006 05:29 AM
09-30-2006 05:29 AM
Re: redirect the whole HTTP traffic using proxy
I did it once with reverse proxy.
All http that comes to proxy is redirected to internal web server- below is the link to a guide:
http://www.visolve.com/squid/whitepapers/reverseproxy.php
All http that comes to proxy is redirected to internal web server- below is the link to a guide:
http://www.visolve.com/squid/whitepapers/reverseproxy.php
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2006 07:03 AM
09-30-2006 07:03 AM
Re: redirect the whole HTTP traffic using proxy
Shalom Chris,
Often this mistake is made.
Before forwarding traffic, which is what your statement does, check the file /etc/sysctl.conf
It must have ipv4 forwarding set to yes.
Then try again, that alone may be the issue.
SEP
Often this mistake is made.
Before forwarding traffic, which is what your statement does, check the file /etc/sysctl.conf
It must have ipv4 forwarding set to yes.
Then try again, that alone may be the issue.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2006 09:36 AM
10-04-2006 09:36 AM
Re: redirect the whole HTTP traffic using proxy
some distros do not reference ip_forwarding in sysctl,.. use cat cat /proc/sys/net/ipv4/ip_forward to get your current status,.. though if that is indeed a gateway, then it should be turned on
next you can do some debugging with logging packets:
iptables -t nat -A PREROUTING -p tcp --dport 80 -j LOG --log-prefix " (INC_HTTP)"
... DNAT line here ...
iptables -t nat -A POSTROUTING -p tcp --dport 80 -j LOG --log-prefix " (OUT_HTTP)"
next you can do some debugging with logging packets:
iptables -t nat -A PREROUTING -p tcp --dport 80 -j LOG --log-prefix " (INC_HTTP)"
... DNAT line here ...
iptables -t nat -A POSTROUTING -p tcp --dport 80 -j LOG --log-prefix " (OUT_HTTP)"
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP