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 two computeres here in my room, but only one wireless card
We have a wireless network and the base station is downstairs and handles the internet. I want get the computer here in my room wihtout a wireless card to connect to the whole network..... Can i do it with NAT forwarding in iptables?
on the box with both connections
wlan0
inet 192.168.1.3
Install and setup ip-masquerading on the box with the wireless lan connection and then tell the cabled box to use the wireless box as the gateway. Some more info on iptables configuration here .
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940
Rep:
you could do bridging... that means that both your wlan0 and your eth0 devices are 'bridged' to br0, br0 gets the ip address assigne, and you set ip frowarding ('echo 1 > /proc/sys/net/ipv4/ip_forward')
then your 2nd (not wireless enabled) computer gets the ip address assigend from your accesspoint, or other router, and your first pc acts like a switch (in this case like a wireless accesspoint).
you can still use iptables to secure the entire setup.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.