Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, I'm trying to modify all webpages to add a small header. I have a computer set up with two network cards. One is on my internal network, the other is connected to my router. Basically, I need something that forwards all connections to their usual destination except for port 80, which is redirected to a proxy. I want something without a NAT.
how can you want something that is in and of its self by definition NAT. if you want to have multiple systems behind a router and you want ports forwarded to specific computers, that my friend is part of NAT.
you are asking several questions.
1.
Quote:
Hi, I'm trying to modify all webpages to add a small header.
for this you can use any editor like gedit, nano, piko, vi, etc... pick your poison so to speak.
2.
Quote:
I have a computer set up with two network cards. One is on my internal network, the other is connected to my router.
this is by definition NAT as your router will not, in most cases, pass your WAN side IP to the computer that it is connected to, it will pass a LAN side PRIVATE IP (192.xxx.xxx.xxx or 10.xxx.xxx.xxx or something along that line)
3.
Quote:
Basically, I need something that forwards all connections to their usual destination except for port 80, which is redirected to a proxy. I want something without a NAT.
what you want is NAT combined with port forwarding. This is the power of NAT.
I can't say I understand exactly what you are wanting to do. It appears you are running a webserver and you want to modify all your webpages that redirect things elsewhere? Is that it? If so, why don't you configure that in your webserver, not in the webpages themselves?
how can you want something that is in and of its self by definition NAT. if you want to have multiple systems behind a router and you want ports forwarded to specific computers, that my friend is part of NAT.
you are asking several questions.
1. for this you can use any editor like gedit, nano, piko, vi, etc... pick your poison so to speak.
2.
this is by definition NAT as your router will not, in most cases, pass your WAN side IP to the computer that it is connected to, it will pass a LAN side PRIVATE IP (192.xxx.xxx.xxx or 10.xxx.xxx.xxx or something along that line)
3.
what you want is NAT combined with port forwarding. This is the power of NAT.
But having a double nat is bad...
Let's say my public IP is 1.2.3.4. The router has NAT built in, so I get a local ip (192.168.182.*) and then I want it to pass through my linux box into another subnet (still 192.168.182.*). I want to redirect all port 80 traffic to a proxy.
double NAT is not bad and the two subnets you listed are the same.
sounds like you need to install an IPCop or IPFire real hardware firewall and configure the system for Red, Green, Orange then put up a 2nd firewall/router behind the Orange connection.
If you are just setting up a Proxy, you dont need a 2nd computer to do that just run it local on your Linux computer, but that will NOT mask your real world IP. For that you will require TOR or some 3rd party Proxy to pass all of your traffic through.
Also what I described is NOT double NAT. it is pure and simple NAT with port forwarding. its networking 101.
Hi, I'm trying to modify all webpages to add a small header. I have a computer set up with two network cards. One is on my internal network, the other is connected to my router. Basically, I need something that forwards all connections to their usual destination except for port 80, which is redirected to a proxy. I want something without a NAT.
Are you talking about on-the-fly URL rewriting for requests coming in to your own webserver?
Oh, now I think I see what you're after (maybe, still not sure). If you want to do this modification on your web browser side, via a proxy setting in the web prowser, you should look at "Proximitron". That is a stellar piece of software, it hasn't had seen any new development for years, but will probably do what you need even though it's old. Google it. It's still out there for download.
Problem is, you'd have to run it under Wine or in a VM, since it's Windows software. I image that would be doable however.
In ``ordinary'' proxying, the client specifies the hostname and port number of a proxy in his web browsing software. The browser then makes requests to the proxy, and the proxy forwards them to the origin servers. This is all fine and good, but sometimes one of several situations arise. Either
You want to force clients on your network to use the proxy, whether they want to or not.
You want clients to use a proxy, but don't want them to know they're being proxied.
You want clients to be proxied, but don't want to go to all the work of updating the settings in hundreds or thousands of web browsers.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.