- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Port Redirecting using xinetd.
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
Forums
Discussions
Discussions
Discussions
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
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
11-05-2002 10:50 PM
11-05-2002 10:50 PM
Port Redirecting using xinetd.
I am using xinetd to redirect incomming requests on port 80 from one of my IP's (on a redhat box) to be redirected to a machine inside the intranet. So far so good.. the other machine (a webserver from a customer running apache). The problem is that the logging of the apache server only sees the 1st machine as 'source-ip', meaning web-traffic statistics are incomplete as they only show the firewall machine. Is there anyway (with xinetd or other way) to have the webserver machine see the REAL ip from the visitor?
The entry for xinetd used is:
service web
{
port = 80
bind = 212.26.219.29
socket_type = stream
protocol = tcp
user = root
redirect = 192.168.1.31 80
type = UNLISTED
wait = no
}
hardware setup:
machine 1 (internet connection):
eth0: 217.8.98.137 (internet)
eth1: 192.168.1.30 (internal)
eth2: 212.26.219.29 (internet, used for redirection)
machine 2 (just internal network)
eth0: 192.168.1.31
Thanks in advance...
-NvR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2002 12:06 AM
11-06-2002 12:06 AM
Re: Port Redirecting using xinetd.
It is not possible to see real IP address of the visitor from apache logs as the xinetd acts as a proxy ( in other words port address
translation or NAT overload ).
Therefore the packets originationg from xinetd
server will have source IP of xinetd server and
destination IP of apache server. Now apache server will send the content to the xinetd server . xinetd server will take care of forwarding the content to the visitor. ( stateful port forwarding)
Only one solution to overcome this is to use xinetd logging option.
service web
{
port = 80
log_type = FILE /var/log/webaccess.log
log_on_success = PID HOST EXIT
bind = 212.26.219.29
socket_type = stream
protocol = tcp
user = root
redirect = 192.168.1.31 80
type = UNLISTED
wait = no
}
#touch /var/log/webaccess.log
Restart xinetd daemon
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2002 12:46 AM
11-07-2002 12:46 AM
Re: Port Redirecting using xinetd.
Thanks anyway for the reaction.
- NvR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2002 08:25 AM
11-07-2002 08:25 AM
Re: Port Redirecting using xinetd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2002 01:56 PM
11-13-2002 01:56 PM