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'm a kinda-newbie with Linux, and am having trouble getting my 2 pc's to talk to each other. One is a Linux Mandrake 9.1 box, the other a WinXP notebook. Both can access the internet through my wired 4-port Linksys router and cable modem (via NICs).
I am new to Linux networking, and am a bit confused by all the parameters in netconfig, not to mention ShoreWall. (I intend to try GuardDog when I get a chance.) I suspect that ShoreWall is preventing it. I've been to ShoreWall.net, and am having trouble keeping up with all the config files/parameters.
Here is what I know about the two systems and their network-related setup that may be pertinent:
Router: 192.168.1.1
DCHP: "on", router as server
Modem: 192.168.0.1
WinXP: 192.168.1.100
Def. G'way: 192.168.1.1
Linux eth0: 192.168.1.101 Bcast: 192.168.1.255 Mask: 255.255.255.0
lo: 127.0.0.1 Mask:255.0.0.0
My 'nix box dual-boots to Win98, and it talks fine to the XP machine booted under 98 abiding by share rules. It's when I am using 'nix that I can't talk to it.
I have gotten my 'nix box to ping WinXP, after setting up rule in my XP machine's Sygate firewall. I am still unable to get XP to ping my 'nix box. Even if/when I do, I'm not confident that I will be able to share files/folders at that point.
I will check and post it when I get home. I have Samba installed as well as NFS. As for setting it up, I haven't really seen how or where to do it. I must be a bit brain dead. For some reason, I get more confused than helped with HOWTO's and resident sites. Maybe because a lot of them don't really address the source of my confusion at times.
FWIW, I'm very comfortable with computers in general, just never messed with networking much. I'm not at all intimidated by the command line. I prefer DOS to Windows. I've been trying to slowly wean myself from Windows for almost two years now, and recently upgraded to Mdk 9.1. (I progressed from 7.0 to 8.0.) I'm getting there, and hope to make it before too long.
I also installed and ran GuardDog. I set up a LAN zone, and specified the IP addresses of both machines, and my router. After that, I could ping normally from XP to nix, but not nix to XP....just the opposite of what I had before. I did not enable pinging from the Internet. Time to get back into GuardDog and then on to Samba.....
As for setting it up, I haven't really seen how or where to do it. I must be a bit brain dead. For some reason, I get more confused than helped with HOWTO's and resident sites. Maybe because a lot of them don't really address the source of my confusion at times.
FWIW, I'm very comfortable with computers in general
This could have been written by me. All those HOWTO's... I'm a busy family man, I know how Windows works, and when I install Linux I have no time to read thru 200 html-pages to study configs. My wife uses Windows XP Pro and she must get into the internet without problems. I came here to see if I get any decent help - I want to install a version of SuSE Server, and my whole Windows-LAN connects to internet through it and I use that server as my main workstation too... but I have no clue how to share the internet connection to XP clients. A tiny clue, proxy server?
Distribution: Gentoo, Redhat 9, SuSE 9.0, 9.2, Win XP
Posts: 149
Rep:
I suppose you could set your box up as a proxy server but I would not know how to do it hence I have some other advice. You need to set IP Masquerading up on your machine. This will sort your problem out. And yes, there is a How To. IP-Masquerade-HOWTO which you will find at www.tldp.org. I can also send it to you if you want.
I understand your frustration with How To's. But read this one. It is excellently written, clear, step by step and will most probably solve your problem.
Those HOW-TO's are all well and good, but none of them address LAN/WAN via a *router*. They address using a PC *as* a router. Therein lies my mental block. I cannot correlate "using a PC as a router" vs. "using a real router as a router". The addressing schemes and function are a bit different.
Yes, I think Linux is well worth it, too. I look forward to the day when much of my ignorance of its ways leaves me.
Is there anybody out there that has the same setup I have, and has it working?
Hello, if your router is your GATEWAY to the internet then you dont need to use NAT/PAT Network address translation/Port address translation or IP-masquerade on linux because your router is doing that for you. You just need to decide if you are going to use static IPs or dynamic (DHCP) more simple is the later. DHCP is enabled by default. If you decide to go static you have to configure your ifcfg-eth# and network files.
I use redhat 9 so the path may be slightly different but very close
/etc/sysconfig/network should look something like this
But if your like me who is always accessing my computer from somewhere else and don't want hackers to have an easy time getting in. I have my lnx srv as my edge and use ssh to tunnel all my connections from remote hosts to local hosts. In this case you need ipmasq or something the like. If your problem is not with routing, as Dogmeats is a problem with firewalls. You dont need to have a firewall inside your private network unless you are afraid of being hacked locally. You should have a built in hardware firewall in the router/gateway of last resort? Use the ntfs permisions for xp and file/folder permissions for linux to make folders available only to certain users. I appologize if I am talking around your issues but it is hard for me to see which direction you want me to take you. There are many ways to skin a cat, so to speak. My first advice is this if you can ping in one direction and not the other disable all local firewalls and try it again. If it works there in lies your problem. Likewise with the file sharing. You can specify to allow programs through your firewall also if you very attached to them. Hope this helps.
Hello. How's it going. Are you planning to use Novell, IPX? I don't know what the IPX statements should look like but for me I tend to copy all my files into another directory for future and then iliminate the parts I dont need. You may atleast want to #comment them out just to be sure if your not using them.
Are you you asking if having your XP machine off the network would change the files you listed? It wouldn't. Have you tested your connections without any firewalls. Check your firewall trust/untrust zone configs on the xp machine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.