Linux / UNIX Tech Support Forum
This is a discussion on question on use raw socket to a implement HTTP Proxy Server within the Networking, Firewalls and Security forums, part of the Mastering Servers category; Hi, I am trying to implement a HTTP proxy server using raw socket. I create a alias IP address on ...
|
Register free or login to your existing account and remove all advertisements. |
|
|||||||
| Networking, Firewalls and Security No it's not a secret. Talk about firewalls and security issues. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi,
I am trying to implement a HTTP proxy server using raw socket. I create a alias IP address on eth1:0 192.168.0.200 on my linux box I opened a raw socket as: fd = socket(AF_INET, SOCK_RAW, IPPROTO_RAW); and binds to 192.168.0.200 and port 3080 bind(fd, (struct sockaddr *) &addr, sizeof(addr)); However when I use netstat it shows the port as 255 as the following: raw 0 0 192.168.0.200:255 0.0.0.0:* 7 7469/test-http-proxy I changed the Firefox connection settings to Manual proxy configuration as: HTTP Proxy: 192.168.0.200 Port:3080 I got this error from Firefox, and I did not receive any packets from the raw socket. The browser is configured to use a proxy server, but the proxy refused a connection. * Is the browser's proxy configuration correct? Check the settings and try again. * Does the proxy service allow connections from this network? * Still having trouble? Consult your network administrator or Internet provider for assistance. Any ideas or pointers are appreciated. yu_zyy |
| Sponsored Links | ||
|
|
![]() |
| Tags |
| http proxy , linux , raw socket |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Want to implement reverse proxy with apache | kumarat9pm | Proxy Servers | 2 | 12-05-2009 02:14 AM |
| Proxy server logs | upanwar | Proxy Servers | 2 | 09-28-2008 11:17 AM |
| socket programming - practicing | sathiya | Linux software | 1 | 05-17-2008 08:31 PM |
| Proxy Server on Linux | basha | CentOS / RHEL / Fedora | 0 | 03-12-2008 02:37 AM |
| Lighttpd socket with multiple subdomains or single IP | muks | Web servers | 2 | 03-17-2007 05:48 AM |