SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Well it's been a while since i had to post a request for help i can usually find the answers to my questions by simply browsing this forum, but this one has me stumped!
My Sister lives about 30 yards from me and I'm currently sharing her internet (Which she has allowed me to do, we split the cost) I'm connecting to her via a wireless adapter and this has suited me fine until recently.
I have a 6 year old son who insisted on having a Slackware box in his room so i decided why not! He now wants the internet, the only problem is i cant get a signal in his room. His machine has a built in network card as well as a usb wifi adapter.
I want to give him internet access so I've been scratching my head trying to figure out how i might do this.
My machine has a similar setup to my son's except my WiFi card is internal. I was wondering if the following would be possible:
A: Using my Wifi Card connect to my sister's wireless router (which i am)
B: Connect my Network card to a router
C: Connect my son's pc to my router thereby giving him internet access?
This is probably out of the question but i figured if i was going to find a solution i would find it here!
I am aware of wireless extenders and the likes but due to recent illness my budget is VERY limited. I already have a wireless dsl modem router and I'm sort of hoping that will suffice?
If anyone has any suggestions or has a similar setup i would love to hear from you as any help would be very much appreciated.
Distribution: slackware64 13.37 and -current, Dragonfly BSD
I used to do this before I got a dedicated cable router. i used an old ADSL modem/router as an access point and a Slackware box as a router to a cable internet connection. You need top look up iptables, nat, masquerading and linux internet connection sharing.
It's not that difficult and there are online script generators to give you an iptables script to use your Slackware box as a router. There is lots of information on the net about this.
You may need to disable the dhcp and dsl modem facilities on your modem/router but, again, it not too hard to figure out. Your son's machine sets your Slackware box as it's default gateway and this box handles the NAT side of things. Your wireless router just acts as a switch between your son's machine and your Slackware box. Make sure this is on a different channel from you sisters wireless or you may get problems.
Here is a generator by Alien Bob just choose gateway/firewall and fill in the blanks. This is the iptables script you run on your Slackware router machine.
Also I found it easier to keep the network cards on the router box on different subnets so you have one side being your sisters wireless and your Slackware box wireless on one subnet and the wired connection, your wireless router and your sons laptop on anther subnet. You can even set up dnsmasq on your Slackware router to hand out ip's via dhcp, gateway addresses and cache dns requests. Your sons laptop then needs very little setup - seeing as you are only planning on having one client this may be overkill.
I'm going to take a stab at this though I hope I'm not misdirecting you here.
I just posted this and someone else just posted a few seconds before I did, so it looks like some of the details are there in his (or her) post. But I'll leave this here anyway in case it gives you some ideas.
I think you could do this two ways, though you'll have to work out the details.
1. Network your two PCs, either with a small hub, a crossover Ethernet cable, or a router used as a hub. Use your PC to connect to your sister's modem through her wireless router. I'm thinking of a wired connection here. If you need portability (assuming you might have a laptop) this won't work with a wired connection.
2. Your router, I believe, can be set to be a wireless access point, and connect to your computer with a wired connection. I'm not sure how you do this, but I think it should work. Again, if you need portability on your PC this won't work (unless you have a long cable and don't mind being wired).
3. Add a wireless card to your PC (assuming you have one built in) and set it up as an access point.
I don't know the details, and the devil is in the details. But your general idea can be made to work.
I use Ubuntu and have used it both wired and wireless. Just be sure to use an encryption that will work with your distro of Linux. It may not support some of the newer, fancier ones. I had problems with this and had to not use a pass-phrase to generate the key. Instead, I generated one on a web site for non-Apple computers (I think Apple uses a different pass-phrase generator algorithm) and used the hexadecimal string to manually enter it into all of my networking stuff, including Windows, Linux, and my router. Only then would it work properly.
Your mileage may vary, of course, and I'm sorry I can't be more specific since I haven't experimented with your intended setup. I have used Windows Internet Sharing and Starfish Internet Sharing (both similar but Starfish was easier to set up) and that allowed one computer hooked to the Internet (dial-up) to act as a gateway for the other PC connected. It worked like a charm.
If you are successful, please post back here so I can read what you did and how well it worked for you. Also, where you got the specifics of what you needed to do.
Take a beer can and cut it in half, place the beer can in front of the antenna, so that the antenna is surrounded by the beer can. now use the beer can to direct the signal. You can get a extension cable and place the antenna on a window or even outside -- of course cables are expensive.
3. This option is almost the same as the first. get a wireless router and set it up as a getway. Not every router will work for this, I have a friend that used a belkin router and it worked great, but belkin routers are pieces of shit
However, know that if you use your Linux box as a router, you'll have to keep that machine on whenever the connected one needs internet, so it may in many cases be better to just use a router if you have one.
Last edited by H_TeXMeX_H; 10-16-2008 at 02:49 AM.
Sorry for the delay in getting back to you. Thanks So much for all the responses I'm going to try each one until i get it to work. I'll be back in my house in about an hour so I'll try it then and let you all know how i get on!