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.
im a bit new to linux and networking, about three days in fact
but i know a little bit from reading some of the stuff on
aboutdebian dot com-very helpfull site
n e way,
ive got a small office network
4 workstations
1 firewall running debian linux
dsl connection (non-static ip)
otherstuff which i dont think is important
i want to telnet to the firewall from my windows pc, so i run command and get:
c:\>telnet 192.168.0.1
Connecting to 192.168.0.1....could not open connection to the host, on port 23.
no connection could be made because the target machine actively refused it
ive tried it on different ports but it still doesnt work.
(i didnt even know what a port or an ip address was last wednesday)
so how do you set up the linux box to allow this kind of thing?
it must only be for the internal nic for the moment because of security and things.
am i right in thinking telnet will give me a virtual console on the linux box, so as i can do anything i could if i was kneeling down in the dark dusty cupboard where the linux box is, but from the luxury of my own desk?
oh a program called tightvnc is running and works if that helps.
is it something to do with ipchains? does this allow me to specify which ports can deal with which services?
Did you install the telnet server (service) on the Linux box. By default, telnet is not installed.
In fact, you should not use telnet... use SSH. SSH (secure shell) is an encrypted connection.
SSHd should be installed on your Linux box. It runs on port 22.
I would go with what Mathieu posted. In the past I used telnet because thats what I always did. But this web site has caused me to re-think and go with ssh.
ssh is just like telnet in that you access another unit with the command (ssh ip_address_unit). If you have nothing but trusted units in your network, that only you operate, telnet may be ok. <let the flames begin.>
If you are using iptables for your firewall two lines added to it should get ssh to access that unit. For telnet to work the number would be 23 in place of 22
These two lines show that eth1 faces your internel LAN.
thanks a lot guys, im impressed with the speedy reply
very helpfull/informative
but ive got another problem
im currently running putty
and i get a log in, so i type root, and the password, but it says access denied
this is a whole step farther than before
because doesnt this mean im actually connected.
sshd thing seems to be running on the linux box because
ps ax cmd lists it
i know the password is right, i logged in a few seconds ago in the actual box.
also, i was inadvertantly helped with another thing
if im wrong please tell me
this allows ports to be used through the eth1 network card?
where tcp or udp is the protocol
so
iptables -A INPUT -p ftp -i ppp0 --dport 21 -j ACCEPT
would allow internet ftp through port 21?
(i found out that although im running some sort of cable thing, its going through a
device which looks like a frog, so its classed as a modem and therefore ppp0?)
that iptables -vL is a headache
i stuck | more on the end, but i cant understand very much of it.
sorry for asking 100 questions in one post, but im learning from scratch.
help with any of them would be much appreciated
sorry i was being an idiot
i managed to get putty working fine
im too embarrassed to say why
cough cough(misspelled password)
so my thanks go out for that
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.