Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
I have a BT Voyager 2100 router where 3 computers connect to this giving them 192.168.1.2, .1.3 and .1.4 addresses where the router is .1.1. This router has a web interface for configuration which runs on port 80. I want any web requests on the the routers IP to be forwarded to a Linux box with Apache running on it. So far this has proved a struggle. I have disabled the web interface on the router and added port 80 forwards to 192.168.1.4 (Linux box) but it just doesn't forward. I can access the web server locally but not externally. I've updated to the latest firmware for the router but port forwarding didn't work before of after this firmware update.
Has anyone else had a web server running on a network with a wireless ADSL router with NAT.
this is pretty simple stuff. you certainly do not need to (or want to) disable the web server to do what you want. port forwarding on routers is a two stage affair typically. firstly there is the need to allow connections externally to your port of choice and *then* you can look at port forwarding that data. to allow web config access remotely you need to explicitly enable this, so there is no conflict there. try a site like shieldsup to check wether or not any connectivity is being allowed on port 80 externally or the firewall is just dropping the packets.
you might find it easier to use the telnet interface, as things are lais out a lot differently there compared to the web interface.
and btw, did you know that that router just runs busybox? in telnet mode you can just break out of the menu there instantly and skim through the linux subsystem. fairly interesting actually.
I've tried CTRL+C to break out of it while in telnet but it doesn't do anything. I have a recent firmware so I think may have been patched out.
Do router manufactorers like to keep people out of the shell of their routers?
well i have a 2110 and i'm assumgin it's the same:
Code:
Main Menu
1. ADSL Link State
2. LAN
3. WAN
4. DNS Server
5. Route Setup
6. NAT
7. Firewall
8. Quality Of Service
9. Management
10. Passwords
11. Reset to Default
12. Save and Reboot
13. Exit
-> sh
BusyBox v0.60.4 (2006.03.03-03:06+0000) Built-in shell (msh)
Enter 'help' for a list of built-in commands.
# ps ax
PID TTY Uid Size State Command
1 admin 1240 S init
2 admin 0 S [keventd]
3 admin 0 R [ksoftirqd_CPU0]
4 admin 0 S [kswapd]
5 admin 0 S [bdflush]
6 admin 0 S [kupdated]
7 admin 0 S [mtdblockd]
13 admin 1296 S -sh
48 admin 2760 S cfm
90 admin 588 S pvc2684d
301 admin 2764 S sshd
302 admin 2760 S telnetd
308 admin 944 S bftpd
309 admin 1224 S tftpd
390 admin 2760 S httpd
395 admin 9244 S dproxy
399 admin 1224 S pppd -c 0.38.1 -a 0.0.38
2867 admin 796 S upnp -L br0 -W ppp_0_38_1 -D
2980 admin 2812 S sshd
2981 ttyp0 admin 2820 S sshd
2998 ttyp0 admin 1284 S sh -c sh
2999 ttyp0 admin 1292 S sh
3000 ttyp0 admin 1236 R ps ax
#
I have setup port forwarding to port 80 of my Linux box that runs Apache but I can't access this externally. I've changed Apache port to 700 and have added this rule to my port forwarding but with no luck. I've also added my Linux box as DMZ but still doesn't help, whether Apache is on port 80 or 700.
Any ideas mate?
If Apache runs on port 80 by default and the web configuration for the router runs on port 80 as default does that mean I have to disable web configuration on the router for the web server to ever work?
If a port forward rule of port 80 is set and also the web config is running on this which one does the router choose to send you to? Apache or router config?
I have tried setting the Linux box as a DMZ and also set a port forward rule but still when I access the IP of the router it goes straight to the web config for the router.
Is buying NO-NAT addresses the only way to solve this problem?
I understand now. It looked like they were conflicting cause I was accessing the routers IP expecting it to forward to the Apache server but it kept going to the router config. Hours later I realised this would only happen on computers on my internal network.
yeah i use a remote proxy when i want to test things like that. there are plenty out there that will relay your web traffic, so when you connect to your domain the http request is done from a remote site.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.