Software to add HTML to webpages?
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:
2. Quote:
3. Quote:
|
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?
|
No, I want to redirect all HTTP traffic at a proxy.
|
Quote:
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. |
Quote:
edit that but that statement is so vague as the first person said use gedit,kate,vi,nano,emacs,..... |
Quote:
|
Quote:
the forum admins will need to chime in on if that topic is legal for us to post on this site you could hack the version of firefox you are using ,then turn off user updates of firefox it would be possible to get firefox to have something in the default window but maintaining a CUSTOM build of firefox will be fun other than that ..... |
Quote:
|
to insert code into the headers of web sites on YOUR OWN LAN might be legal
as in YOU own all the computers that you are doing this to but that is a double edged sword something that crackers do . so .... |
Quote:
http://en.wikipedia.org/wiki/Rewrite_engine http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html http://httpd.apache.org/docs/2.0/rew...ite_guide.html http://httpd.apache.org/docs/2.0/rew..._advanced.html Or are you talking about a transparent proxy that sits between the client (on your LAN) and external internet webservers? http://en.wikipedia.org/wiki/Proxy_s...nsparent_proxy |
Quote:
|
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. |
OK, here is a "how-to" for transparent proxying.
http://www.tldp.org/HOWTO/TransparentProxy.html From the overview section: Quote:
http://wiki.squid-cache.org/SquidFaq/InterceptionProxy . |
All times are GMT -5. The time now is 10:55 AM. |