You are not logged in.

#1 2012-07-05 01:52:30

tonykuroi
Member
Registered: 2012-07-05
Posts: 10

Problems Masquerading

So, I want to masquerade my internet connection from my laptop to my desktop. My laptop has wifi, but, my desktop doesnt right now because the antenna is missing. so, I want to share the internet from my laptop to my desktop, having my desktop pick up wifi, and give the internet to my desktop. My laptop is an HP pavilion dv7-6163us, my desktop is... custom built xD i5-3750k 3.4GHz, asrock z77 extreme 4, G.Skill 8GB (2X4GB) sniper 1600 low volt and other stuff which arent really important. both run arch linux with the most recent version of gnome.

for some reason, when connect the ethernet cable to my desktop, my laptop disconnects from the wifi. them my desktop says its connected, but, doesnt have internet access. I just want to know a way to basically make the wifi my main module, so that i can have it getting internet, and the ethernet forwarding said internet. any suggestions? I've tried several different methods with Iptables and some other random things such as using network manager to set the ethernet to forward the connection, but, i always end up with the same result.

Offline

#2 2012-07-05 02:00:51

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,484
Website

Re: Problems Masquerading

I haven't read this whole thing  (I'm a few too many shots of tequilla in to read clearly) but I'd suggest in your searches you look for bridging, not masquerading.  The latter term caught my attention as rather odd.  The former term (bridge) should produce useful results.  This topic has been discussed previously on these forums.

FYI, welcome to the forums.

After having (attempted) to read a bit more, it seems more information may be needed - my advice is to first search the forum for other posts about bridging wireless to ethernet, then, if you still need help, include specific information on what you have tried.  For example, you mention you tried "random things" with iptables.  Describe step by step what you have tried and what the outcomes and/or error messages were.

edit: cool masquerading is a networking term.  Though I don't believe this is what you mean.

Last edited by Trilby (2012-07-05 02:02:33)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2012-07-05 02:28:55

tonykuroi
Member
Registered: 2012-07-05
Posts: 10

Re: Problems Masquerading

Hmm... i did some research into it and a lot of people were throwing out that term. To be fair, a lot of the posts were a bit old. i tried the stuff on this page http://www.unix.com/unix-dummies-questi … linux.html, and something similar which i cannot seem to find again, but basically used the same exact method, only creating an executable file with the settings. I did look up a method on this site, but, it was rather confusing and i ended up with the same result anyhow. (https://wiki.archlinux.org/index.php/Internet_Share)

oh, and ifconfig for some reason is an invalid command on my system, which doesnt make sense to me.

Last edited by tonykuroi (2012-07-05 02:30:00)

Offline

#4 2012-07-05 02:40:01

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,484
Website

Re: Problems Masquerading

Ah, perhaps you are right about the term.  And in searching for other threads on this it seems most of them do just refer to the wiki article you have already followed.  Perhaps I should stop back when I am "sotally tober".

ifconfig being invalid is odd.  It is in the package net-tools in core.  Make sure your system is up to date (pacman -Syu) and check that net-tools is installed.

While this (networking in general) is outside my area of expertise ... if I have one at all ... I will say that error messages in archlinux are genuinely useful.  Sometimes this is in contrast to other OS's.  Most often you will get the best help when you include details of what you have attempted and precisely what the response/output/error-messages were.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2012-07-05 03:25:11

tonykuroi
Member
Registered: 2012-07-05
Posts: 10

Re: Problems Masquerading

i dont get any errors at all. other than "bash: ifconfig: command not found". when i try to set it up, everything APPEARS to go okay, however, when i connect the two computers, the laptop basically disconnects from the wifi, and connects the desktop... which wont really do, since the desktop is supposed to be getting internet from the laptop. so then, niether can connect to the internet

edit, for SOME REASON, net tools wasnt installed. which is really weird. because that's honestly never happened to me before. but, im going to try again with net-tools and see what happens. ill edit again for my results.

edit 2: by following the directions on that page to the letter, it fails completely. the laptop keeps trying to connect to a network through the ethernet slot, and in any case, the desktop fails to connect. so, i changed the gateway to my computer's IP address, which is basically static, i assigned this IP address to my laptop in my wireless router. by doing that, the desktop actually connects, but i dont have any internet access. My laptop has never actually been nice about sharing internet. It has the ability supposedly to act as a wireless hotspot, but the same basic thing occurs. anyone who connects to it cant access the internet.

the only ONE thing i didnt do, was the packet forwarding thing. rather, i didnt follow it exactly. in /etc/sysctl.conf, there is already a line in there for packet forwarding through ipv4, so i set THAT to one. it has spaces in the line, unlike the line put on the tutorial, which basically has blahblah=1, instead of blahblha = 1

so, im at a loss. it could just be an issue with my hardware, since internet share has been a problem across every OS ive used, windows 7, ubuntu, mint, and now arch. if anyone else has any ideas, id be glad to post any info they may require

Last edited by tonykuroi (2012-07-05 05:52:01)

Offline

#6 2012-07-05 06:29:24

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Problems Masquerading

tonykuroi wrote:

for some reason, when connect the ethernet cable to my desktop, my laptop disconnects from the wifi.

Are you running a network helper - e.g. wicd, NetworkManager?

Offline

#7 2012-07-05 07:54:07

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: Problems Masquerading

Just as a sidenote. The fact that net-tools wasn't present on your system is completely normal. The package has been deprecated for a while in favo(u)r of iproute2.


Burninate!

Offline

#8 2012-07-06 18:56:44

tonykuroi
Member
Registered: 2012-07-05
Posts: 10

Re: Problems Masquerading

brebs wrote:

Are you running a network helper - e.g. wicd, NetworkManager?

yes. network manager. but, it doesnt matter now, because i installed ubuntu, and it worked perfectly. i really dont need the laptop for much now that my laptop has internet, so, having ubuntu on it is acceptable lol. might put winblows back on it so i can game until i get a dedicated VGA for my desktop

Offline

Board footer

Powered by FluxBB