• 23 hours ago

Category

🤖
Tech
Transcript
00:00How is it going guys? We are not so far from 1000 subscribers. For those who subscribed, thank you very
00:07much. For those who still didn't, please subscribe. Like, share and comment. I thought of doing two things. The first
00:17thing is experimenting with the legendary iNetD aka super server for the BSDs. And the second one is installing a
00:29telnet server.
00:30that depends on inetd telnet is not when it when it is used for remote control it's not a good
00:39option when it comes to security but the risk gets lower as long as you have firewall and router with
00:49NAT and whatnot make sure you don't expose the machine that has telnet server with the port open to the
00:59internet
01:00whenever you expose it it's like exposing or opening your house in a very unsecured place to robbers and letting
01:14them steal from it the first command that we need to run here i am connected through ssh i will
01:22switch to root by running su the first command is pkg install free
01:35psd dash telnet d like this in case it didn't work which i expected it to be the case here
02:02you can add the category which is in my case or in the case of this piece of software net
02:10so the command becomes pkg install net slash free psd dash telnet d enter here y and enter
02:29and then you go to uh slash etc slash inetd.conf using your favorite text editor the one that was
02:39pre-installed on freebsd is vi and i installed vim and nano whichever you want you can use as long
02:47as you install it they all exist in the official repositories i will use this time vim you make sure
02:55you edit this file slash etc slash inet
02:59d.conf enter and then we uncomment the lines of telnet d as you can see we have a bunch
03:17of lines each of them is for specific protocol and that's where inetd shines look at all these protocols some
03:40of them i saw them for the first time like this one spray d
03:46the special thing about this piece of software iNetD is the ability to run whichever daemon mostly the ones that
03:58are related to network without a big footprint when it comes to performance you can even start SSH from this
04:10in my case I enabled SSH during the setup of
04:18FreeBSD, that's why I use it here. We uncomment this one. It's Vim, so it becomes like this, like this.
04:28We save and exit. And then we enable and start the service by running sys rc inet d underscore enable
04:46equals yes all uppercase.
04:54yes within double quotation marks like this enter and then service inetd start like this i have a video where
05:11i show the installation of telnet server on gentoo and i use it in it i use it in that
05:19video xinetd which i believe is based off of inetd
05:30i guess we need to check netstat syntax varies from a specific operating system to another it's available everywhere let's
05:46see if we can prove that it's working the verification can be done by running this command sockstat-46-l
06:06this one for piping grab that symbol
06:11and then colon 23 like this and it proves that IND is listening on the ports 23 in case you
06:20have the firewall enabled on your FreeBSD you must open the ports in order for your telnet server to work
06:32I still didn't enable that it's not recommended I intend to enable it in a video
06:39that i will upload on this channel try from this one we will connect using this machine from a different
07:00tab of this terminal emulator like this okay the username is bsd user password and we are connected which means
07:16that our telnet server works it may also come in handy in case of
07:22backup and recovery like when your SSH server doesn't work you can try with telnet just in case that makes
07:32it for this video and see you

Recommended