|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
port forwarding
i cant find anything useful on google
![]() what i want is have the http,ftp,ssh etc.. requests to my ip be taken to a computer on my network. there's only 1 besides the main comp =D so that's the one. i mean i'd rather use the port 80 for apache. but ssh ftp smtp be whatever. only i dont know even where to start the computer that has internet access has winxp. the one with apache on it has rh 7. please help =D thank you
__________________
Free Random Signature , Avatar Hosting http://freebsd.munk.nu/ http://jez.hancock-family.com/ |
|
#2
|
|||
|
|||
|
How are you connected to the internet? Is there a router or is it one of these machines providing access?
Everything but ftp will be quite trivial to setup. (ssh is port 22, smtp 25, read your /etc/services on the linux machine )M.
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
|
#3
|
|||
|
|||
|
it's a switch.
i dont get what to do tho. like how am i supposed to redirect people to that comp for every http,ssh,ftp request ![]() do i just type my ip : port ? cause i tried that for apache and it couldnt find it. i |
|
#4
|
|||
|
|||
|
A switch cannot connect you to the internet. There must be something more than that.
A typical setup could look like this: Internet provider ----DSL---> Linux router ----ETHERNET----> switch ----ETHERNET----> other machines, one of which is the apache server That would need configuration on the Linux router to forward all incoming requests to port 80 to the other machine. Example: Linux router: - external interface eth0, IP dynamic - internal interface eth1 IP 192.168.1.1 Apache server: eth0, IP 192.168.1.100 Setup the linux router with iptables to forward all requests to port 80 coming in via interface eth0 to 192.168.1.100, port 80. Quote:
unless you canged the default setup, this would be the easiest way for testing if the port forwarding does work. hth, M. |
|
#5
|
|||
|
|||
|
lol ahh what?
ye it's a cable modem. winxp comp is the one connected to it. then there's a switch to which both (winxp and linux) are connected. the linux comp gets the internet there =P all the services are on the linux computer. but peopel requesting them go through xp one first right? since it's the one connected to the internet i'ma noob man. =) Last edited by wannabe : February 7th, 2004 at 02:00 PM. |
|
#6
|
||||
|
||||
|
Quote:
Does your cable modem have the official IP? i.e. do your PCs have only internal IPs? (192.168.x.x or 172.16.x.x or 10.x.x.x) or is it the XP box which gets a "real" IP from the modem? If it is the cable modem, then it is actually a router. It would have to support port forwarding then. If it is the XP machine, you are probably using ICS (Internet Connection Sharing) to connect the linux machine too. Then you can configure port forwarding in the ICS settings. Quote:
I know. I am trying to go slowly step by step. ![]() M. |
|
#7
|
|||
|
|||
|
i dont know if it's official. it's whatever their default is. i just got the modem. my ip changes every 3 weeks or so. i didnt buy a static or anything. if thats what u mean =)
also where would the ics settings be? Last edited by wannabe : February 7th, 2004 at 02:22 PM. |
|
#8
|
|||
|
|||
|
Let me rephrase the question with this new info:
Does the modem's IP change or the XP machine's? I guess it is the XP machine's, so this leads to another question: Can the linux machine access the internet at all right now? M. |
|
#9
|
|||
|
|||
|
ye it can
|
|
#10
|
|||
|
|||
|
And whose IP is changing?
|
|
#11
|
|||
|
|||
|
i dont know. they change it =D i didnt do anything. whichever's better for them
|
|
#12
|
|||
|
|||
|
No, I meant on which machine is the IP changing?
Let's take a different approach: Please post the current IPs of your windows XP machine and of your linux machine. You can X-out the last number for security reasons if you want. M. |
|
#13
|
|||
|
|||
|
oh the winxp one changes.
the linux on is the 198.0. whatever for the network thing |
|
#14
|
|||
|
|||
|
And how does the linux machine get its internet connection then? Via the XP machine?
-> Then go this way: Right click on the "Network Neighborhood", "Properties". The list of network connections shows up. One of them has a hand symbol showing that this is the shared connection. Right click on it, choose "Properties". Now there is a dialog with several tabs. One should read "sharing and security" or similar (you know, I only have used german XPs). It is the last tab. It should have a button "Advanced Settings on that page. Click it, it should show you a list of services, eg. http, ftp, etc. Ok so far? |