Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Running Rh 8.0 When in gnome, and trying to tweak the ip addresses via broadband in the network config tool, i go to 'apply' changes or even click okay and it gives me the error exception in saveProfiles. I'm trying to get someone to be able to ssh or telnet into my machine but its not working because i cant save changes. Is there a way to change them it without gnome?
Also, the ethernet works okay, because i can access the internet but when i try to put in the ip address so other users can log in, it won't save the changes, which im sure is a bug. I click debug and it hangs...there has to be a file i can manually just put in the ip address ?
Well, you could do it with an ifconfig statement.
There should also be /etc/scripts/netconfig IIRC, but I could be confused.
the ifconfig statement should look something like
localhost#ifconfig eth0 10.10.10.10 netmask 255.255.255.0
that'll set your ip to 10.10.10.10, with a 24 bit mask.
then, assuming you'll need to set a gateway, so that information goes out, do this:
route delete -net 0.0.0.0 netmask 0.0.0.0
(This will clear out any potential conflicting default routes)
route add -net 0.0.0.0 netmask 0.0.0.0 a.b.c.d
where a.b.c.d is the IP of your gateway.
As a side note, you could try running netconfig, instead of using neat (Rh's X11 gui)
Use your own address and network information. This is a typical simple example for a scenario where you have a DSL or cable link to the internet protected with a packet-filtering router (192.168.1.1). Your gateway may be a different router of yours, or a host at your ISP.
This information is correct as of RH 8.1 and RH 9.0. I think it was the same with 8.0, but I don't run that anymore...
Once you have this set up, you should be able to issue:
# service network restart
ifconfig will report if eth0 is properly configured. As mentioned, this is the correct way to set this up in RH so it survives a reboot.
I suspect this doesn't answer your real question, though. I'm not sure what you're asking. Are you trying to filter services (ssh, telnet) by source IP address (that of your friends)?
Okay here are the specs:
I'm accessing the internet through a wireless Microsoft router (base station etc). It assigns ip network address of 192.168.2.14 and in using dhcp I am and connected to the internet etc...However no one can telnet into my machine. I had this problem earlier, corrected it, now ive changed ip's again and can't seem to get the settings right.
WAN IP address: 12.255.17..etc
Subnet mask: 255.255.255.192
Def gateway: 22.214.171.124
Prim DNS: 126.96.36.199
Now with these stats howdo i
netconfig etc my machine so my buds can telnet in?
I assume your router is performing packet filtering - and hopefully all or most all ports are closed to incoming connections. Otherwise you're wide open to attacks. I can't be more specific on this because I'm not familiar with the particular router.
Carefully open up incoming access in the router through the ssh port (22).
You should not use telnet in this configuration. It's not secure. Ideally you should limit ssh access based on source IP address (your bud's). Either way, ideally give your buds accounts on your machine, and limit ssh access to those users, and use strong passwords.
So if you can restrict by source IP, add the following to /etc/hosts.deny:
sshd : ALL EXCEPT 192.168.2.0/255.255.255.192, n.n.n.n
where n.n.n.n is your friend's IP address. The 192 stuff keeps ssh open to your own internal network. If your friend doesn't have a static IP address, but one given out via DHCP from an ISP, then it's not as safe, but still reasonable, to replace n.n.n.n with that ISPs network(s) and netmasks, just like we did for your 192 network:
n.n.n.n becomes for instance, 188.8.131.52/255.255.255.0 - just an example.
OK, the above is assuming you can restrict based on source IP. This next part should not be optional unless you want to leave your world open to all. (Even with ssh - it's like putting a nice lock on your open door - useless).
Create user accounts for your friends - with proper restrictions - depending on the access you want to offer.
Then assuming a user 'joe', add the following line to /etc/ssh/sshd_config:
(You probably want to allow yourself on this line as well).
Then restart sshd:
# service sshd restart
I know this seems like a lot of detail, but there's no way to allow others to connect to your machine without opening your router/firewall, and when you do that, telnet is extremely insecure, and ssh is only secure when properly configured. If more paranoid you could exchange public keys in advance via e-mail...
Okay I'm really confused now (sorry, green newb here) There should be a simple way to allow people to telnet in using the WAN ipaddress which is routed by the Microsoft base station. I've done it before, but my ip changed and in trying to fix it, got all messed up and I can't remember how I did it before. Hehe. Now, frankly these buds of mine would just telnet in to play something called a MUD on port 4000, which worked fine before, but isn't now.
I'm just hoping to get it set so they can telnet my WAN then the port 4000.
In the past, ive gone into gnome network device control and tried various settings until it worked. Now back to the original question of this thread which lead to the above question Why won't my changes save after clicking apply or even close? Am I going to have to reinstall? Ugh.
Security doesnt really matter atm because i just purged my top secret CIA files and have nothing left on my box but MUD code and a few other snippets.
Well it's working fine. In netconfig i just had to click dynamic IP configuration, then mailed my buds the WAN ip, and after sticking the correct addresses in the hosts file, everyone can connect. I was trying to test it by telnet'ing in to my own machine via the ip address which didnt work.
Now...hehe, still having problems making changes in gui for network, am i out of luck..do i have to reinstall?