General :: Manually Closing A Port From Commandline?
Apr 6, 2010
I want to close an open port which is in listening mode between my client and server application. Is there any manual command line option in Linux to close a port ??NOTE: I came to know that "only the application which owns the connected socket should close it, which will happen when the application terminates."I dont understand why it is only possible by the application which opens it ... But still eager to know if there is any another way to do it ??
View 4 Replies
ADVERTISEMENT
Sep 11, 2010
We have a 1000 year old mandrake server at work providing mail services.We need to close port 25. iptables is not installed. is there another way of closing ports on linux ?
View 2 Replies
View Related
Jul 17, 2010
I just installed Mandriva 2010 and set up the interactive firewall via the MLCC. I set it up not to allow any services to connect (didn't check any boxes). However, when I check my system using a port scanner (shields up at www.grc.com) it says that port 23 is open. Does anyone know why this would be and how I can close it When I look at the daemons running I notice that iptables and ip6tables are 'stopped' although shorewall is running - is this correct? I (perhaps wrongly) thought that iptables needed to be running in order for the firewall to work properly.
View 2 Replies
View Related
Feb 25, 2010
I have configured Hardware RAID. Is there any way I can know that through login to linux box?
View 6 Replies
View Related
Jan 21, 2011
I am writing a script in which I need to send a email to a @vtext.com address and was confused on how to go about this. (Its in a perl script so ideally it would be a one line command so I can just put in back ticks).
View 1 Replies
View Related
Mar 1, 2011
I use in Ubuntu proftpd to send files with a little script over the internet to my website.
If I write all these scripts it's a lot of work and my first question is what is the best way to send files over.
For example do you need to type:
put /directory/file.gz /www/file.gz ? or can it shorter? like
put /directory/file.gz /www/ because then ftp complains it can't create file
View 1 Replies
View Related
Oct 12, 2010
I have to edit the grub.conf as there was a issue in running in virtual box, so i went to edit the /boot/grub/grub.conf file ( centos )and run
[Code]...
View 4 Replies
View Related
Jul 13, 2010
I am using a script to start an application (with GUI, i.e. windows) in KDE. However, the window will always appear on the currently used desktop. I would like to define which desktop the application will appear to be able to just run in invisible in the background. How can I do this for KDE?
View 1 Replies
View Related
Feb 15, 2011
I want to change the icon image of the executable files from command line.
View 3 Replies
View Related
Mar 11, 2010
Is there a simple command line to do this, in an easy way?
View 1 Replies
View Related
Nov 18, 2009
I did command:
sudo -s
chmod 770 .
chmod 770 ..
And now I cannot login on my test server notebook. Please do not ask why I use server software on my notebook. Cause I like it and I use it only for typing text en learning linux commands. So I have a notebook with ubuntu server 8.04.2.
First question is:
Why have linux after command ls -l -a this output?
drwxr-xr-x 21 root root 4096 2009-11-04 20:45 .
drwxr-xr-x 21 root root 4096 2009-11-04 20:45 ..
And how must it to set and use? What is it's function? How can I repair my server notebook? Must I unmount my harddisk with a sqrewdriver and connect it to/on an other linux machine? If its needed, I can do that.
View 6 Replies
View Related
Aug 28, 2011
I am trying to start a VirtualBox VM on a separate X screen (in fullscreen) so I can switch between Linux and Windows XP by doing Ctrl + Alt + F<.
I am basically trying to do something like this:
startx "VBoxManage startvm XP" -- :4
startx "VBoxManage startvm "XP"" -- :4 (is this correct for quotes within quotes??)
I get a "bad command line option "VBoxManage" back from the startx script so obviously I am not understanding the rules for how to write "shell magic".
How can I do this correctly, or perhaps there is a better way of achieving a VirtualBox VM on a separate X screen?
View 1 Replies
View Related
Apr 8, 2011
Is there a utility to forward ports on a simple home networking wireless router from commandline using upnp?
View 1 Replies
View Related
Oct 21, 2010
VERY new to linux, erm but I have an issue that needs solving!I recently moved to university, where their network blocks sftp port 22, this means that I cannot connect to my FTP server which is running a version of linux.Now I've got this ftp server connected to a seedbox and it was created using the following walk through..Code:I have written this guide for a friend, but I though it would be useful for others as well.
There are several guides floating around, but I found that most always cock up in some way. This one is tried and tested to work on Debian Etch (on an OVH rps, but should apply to most servers).If there is a new stable release of rtorrent/libtorrent then I will update this guide to show you how to update it (without reinstalling the whole server).
At the bottom there are also instructions to install ftp access & some network monitoring software.Basically, I would really like someone to be able to construct the commands on how to change the listen port for sftp connection on linux or add another port to the list that Linux would use so that I could put in through putty.
View 2 Replies
View Related
Jul 20, 2010
I tried to make "ssh tunneling", but failed and got this message.
Quote:
Administrator@windstory-PC /
$ ssh -R 7869:localhost:7869 windowsstudy@192.168.0.4
windowsstudy@192.168.0.4's password:
Warning: remote port forwarding failed for listen port 7869 Last login: Wed Jul 21 01:56:04 2010 from 192.168.0.2 -bash-3.2$
1. system environment
192.168.0.2 - windows 7 + copssh
192.168.0.4 - centos 5.4 x86 + openssh
2. Guide for setting "ssh tunneling"
[URL]
3. Added this to sshd.conf
Quote:
AllowTcpForwarding yes
4. "netstat -na|grep 7869" at 192.168.0.4
Quote:
[root:maestro:~]# netstat -na|grep 7869
tcp 0 0 0.0.0.0:7869 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:7869 127.0.0.1:53539 ESTABLISHED
[code]....
5. result of "ssh -vvv -R 7869:localhost:7869 windowsstudy@192.168.0.4"
Quote:
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
[code]....
6. I added 7869 for telnet service as follow;
Quote:
mytelnet 7869/tcp # My Telnet server
View 1 Replies
View Related
Jun 17, 2010
Several times now my PC with Ubuntu 10.04 LTS installed wont close down. I click on all the appropriate buttons but the system doesn't shut down. I have to press the on / off button on the computer to end my session.
View 6 Replies
View Related
Aug 21, 2010
I have been using Ubuntu 10.04 LTS for several months and recently the system has stopped closing down cleanly. It starts okay and runs just fine, but when I come to closing down it doesn't do anything after I've clicked on the shut down button. The same happens with the restart button. I have been closing the system by pressing the power button on the front of my tower. I have no idea as to why it won't close ... I haven't installed any extra software, so I guess it's a system problem. Closing down by pressing the power button cannot be doing the OS any good, so I could do with a fix ASAP on this one.
View 8 Replies
View Related
Jul 1, 2011
This is gopal,I am phasing problem in closing emulator in linux.After completion of successful execution if i am trying to close the emulator it wont close only choice is to force quit.
View 1 Replies
View Related
Apr 30, 2011
I recently purchased a dedicated server and have been having trouble with putty. I have been using the server to try and host the game called minecraft. Hosting the server is not a problem however. What is the problem is being able to exit putty without stopping the server. I looked this up, and it sayed to create a screen. I did that after installing screen. I then created a screen, ran the server, then tried to disconnect using the ctr-a-d.However only two things happen when i push the buttons. The majority of the time the window just closes, along with my server stopping. The other thing that happens is putty just stops. I cant type in anything, but I am still notified when I try to close putty.
View 3 Replies
View Related
Mar 8, 2010
Since the incedent described in this thread:[url]
X just freezes whenever I close a window, I have to kill X when that happens. For some reason it doesn't do that in TWM, though.
View 14 Replies
View Related
Feb 18, 2010
I want to do a simple port redirect, i.e. whatever comes trough whatever interface on port AAAA will get redirected to port BBBBI thought that iptables -t nat -I PREROUTING --source 0/0 --destination 0/0 -p tcp --dport AAAA -j REDIRECT --to-ports BBBBhowever it doesn't work, e.g. nc -v -w2 -z localhost AAAA gives:
nc: connect to localhost port AAAA (tcp) failed: Connection refused
while
nc -v -w2 -z localhost BBBB
[code]....
View 10 Replies
View Related
May 28, 2010
I'm wondering if there is any way to execute a program, run some command or anything else when closing the laptop's lid.
My question aims to be generic, both for Windows and Linux. Something useful should be locking the laptop when closing the lid (Win + L in windows), or running expensive processes such as antivirus analysis etc. without doing it manually before closing the lid.
View 2 Replies
View Related
Jan 16, 2011
Running Linux Mint 9 isadora - After closing the lid I have problem with wireless not working and sound will not work. I have to restart the computer.
View 1 Replies
View Related
Jan 16, 2010
I am using putty to interact with Linux server. I have started a process using putty.
The process is running and will take 5-6 hours. I want that process to keep running after I close the putty session. How can I keep that process alive after closing the putty session? I do not want to keep the computer ON all the time. Is there any way to do this?.
View 5 Replies
View Related
Jun 4, 2010
I run the ping command using system() in C. It start pinging the desired destination but when I close my application it continues to ping. Is there any solution that as soon as I close my application it also stops pinging. Any change required in my C code?
View 2 Replies
View Related
May 26, 2011
Any time i try to open skype it closes out fully in 5 seconds (not even in the processes anymore). I don't know why or how OR how to make it stop being so mean to me! i'm running ubuntu 10.4 32bit . I tried to boot it in safe mode and umm.. it froze? or crashed? well it was on the black screen with the blinking dot for like 20 mins before i gave up on it (Hiting enter or esc or anything didn't work). There was a key symbol on my panel before skype acted up(It closed and disabled something.. i've never seen it before). Adobe also crashed, and linux did a small update (nothing with skype).
View 14 Replies
View Related
Jan 21, 2011
I have a script which takes a file as input and reads it in while loop cuts the name of table and stores in a variable opens DB connection and queries for rowcount in that table closes the connection reads another file and then follows step 1 through 4 till EOF is reached. Now this script is taking longer to execute maybe because the DB connection is opened and closed each time.
My scripts is:
Code:
#!/bin/ksh
cat logcountOP | while read LINE
TBLName=`echo $LINE|cut -d "-" -f1`
[code].....
I was thinking of changing this.I want to open the DB connection just once and then query it for all tables and then exit.
View 3 Replies
View Related
Apr 19, 2011
If a file is opened from the common prompt with something like:
gedit somefile &
Is there a way to close somefile while leaving the instance of gedit still open? My idea is that sometimes I will have more than one file open in gedit. I run a script daily that updates to a log file. The log file is then opened and viewed with gedit.
View 5 Replies
View Related
May 24, 2011
When I open a pdf file (e.g., beamer file) using xpdf, there's an annoying window on the left displaying section headings. Presumably it's possible to close it, ideally toggle it closed and open with a key binding, but I can't find out how to do this.
View 4 Replies
View Related
May 2, 2010
I have a mail server i need it to send message via port 587 not port 25, i make some changes to my postfix server which i use and it is already successed making a telnet to 587 port like it :
[Code]....
View 3 Replies
View Related