New Wireless Router
I just got a new Linksys wireless router, which I am very happy to have. I have some questions, however.
The Linksys router creates its own subnet. So when I connect my computer to the router (either through a wire or wireless), I am assigned an IP address by the Linksys router which starts with 192.
The network that I am on is an on-campus network, which normally assigns IP addresses that start with 10.
So...while my IP address used to be 10.x.x.x, it is now 192.x.x.x, because it is assigned to me by my router.
I can see this causing problems if I ever want to remotely connect to my machine from another computer on campus, however. For example, if I am running an SSH server on my computer, and I want to SSH into my machine from another computer on campus, as far as I know, I can't do it, because my computer is invisible behind my new router.
Is there any way that I can make it so that although my computer's internet connection passes through my router (while wired), I can still receive a 10.x.x.x address from campus? I don't care about doing it while I am connected wirelessly...I just want to be able to do it while I am connected with a wire. So basically I don't want the Linksys router put me on its subnet but instead let me pass my internet connection right through it.
Thanks for any help with this!
Most Linksys routers have a "DMZ" setting available, where you can tell it to forward all incoming connections from the WAN interface (the 10.x.x.x IP) to a specific IP on your network. That should do what you want, though it's probably safer to just forward the specific ports you need to a given machine.
You can disable DHCP, since that's basically what reassigns you a new IP from the router.
Remember that when you're behind a router, you'll need port forwarding of some kind to actually get connections, since the router won't know to which computer the data is meant for (applies only if you're using DHCP I think).
DHCP is, of course, only required if you have multiple computers that needs to share one IP.
To achive what you want, do the following
1. Assign a static IP address to your local machine, which you have connected to your linksys router.
2. Make sure its all within the same subnet. Perhaps configure it as
IP - 192.168.1.10
Subnet mask - 255.255.255.0
Default gateway - 192.168.1.1
Prefered DNS - Contact your ISP. (Easy way of getting this, let your computer get the IP address from the SHCP server, then your router assign the DNS server automatically. You get the DNS address. And then change it back to Static.)
3. And now you are running your SSH server on your machine. (start your SSH server)
4. In order to allow all ssh client connection to be routed to 192.168.1.10(That your machine)
5. Open up router setting page
6. You shoud be seeing a tab called Applications and gaming (Click on that)
7. And open the port and direct all ssh client traffic to 192.168.1.10.
Most of the time ssh client port number is 22, unless you have configured to be different.
Hope that gives you an idea on how to ssh to your home PC from campus PC.
That's basically port forwarding + static IP for anyone who's wondering.
There are also free DNS services out there to map your IP to a DNS.
Here is good link of Dynamic DNS https://www.dyndns.com/ registration.
Thanks for clearing that up....
Originally Posted by Elysia