Networking :: UDP - Stop Netcat Connecting?

Dec 9, 2010

I'm wondering if I can use netcat to listen to a UDP port and display ALL incoming packets, no matter where they're from. If I just do 'nc -u -l 1234' then netcat will listen for incoming packets and connect() to the source address of the first one it sees (I can see this with strace). Is there any (standard) way to stop the connect() call? I can make a hack to block connect() with a function of my own, but that'd be ugly

View 6 Replies


ADVERTISEMENT

Fedora Networking :: Connecting To Server With Netcat

Jul 10, 2009

I connected two machines, I have their given of the addresses ip in a static way and not with DHCP. I gave to the machine server the address: 192.168.0.1, and in the machine client the address 192.168.0.2.

View 5 Replies View Related

Networking :: Ubuntu Keeps Connecting And Disconnecting From Wireless Router / Stop It?

Aug 13, 2010

Need help, ubuntu keeps connecting and disconnecting to my wireless router. whenever i am able to get it to connect for a significant amount of time, i still have no access to the internet.

using ubuntu 10.04

using Linksys router, not sure what model but can find out.

using toshiba satellite laptop

I am able to access my router and internet in Windows without any problem

dont have anything of importance on ubuntu install, so i could reinstall but would rather not so that i could fix this problem in the future.

View 1 Replies View Related

Networking :: OpenSuSe 11.4 - How To Ping DNS Using Netcat

Jun 15, 2010

I am new in linux. I am using opensuse 11.4. How can I ping a DNS using netcat?

View 6 Replies View Related

Networking :: How To Send Udp Packet To The DNS Using Netcat

Jun 16, 2010

How can i send udp packet to the DNS using netcat in opensuse.

View 7 Replies View Related

Ubuntu Networking :: Netcat Doesn't Seem To Work

Jul 27, 2010

I've tried to use netcat in the past and assumed it was my stupidity that was preventing it from working... but this is getting ridiculous. I'll execute nc -l 3333 on a server at 192.168.0.105 (after opening it on the firewall of course) then I run nc 192.168.0.105 3333 on my laptop (from 192.168.0.101). and nothing happens... i start typing and nothing comes up on the terminal.

I run nc -z 192.168.0.105 80 which should ideally do a port scan of port 80 on that server (of which I'm running a web server that clearly works) but it doesnt even give me any feedback. Nothing happens. Now when I use the verbose flag i see that I am indeed connecting to the specified port on the server successfully (so the port scan one is a success but only with the verbose flag... which shouldnt be the case I believe). But still once I have the server listening and the laptop connected... I type in both windows and nothing happens...

View 1 Replies View Related

Networking :: Relay UDP Broadcast Using Netcat/Socat?

May 7, 2010

Here is my problems :I have two networks :1. LAN (10.1.x.x subnet 255.255.0.0), and2. my internet public (IP 202.xx.xxx.xxxx subnet 255.255.255.240)I have an application in my LAN PC (10.1.2.240) which broadcast udp packet to its client. The client in my LAN can receive the udp packet, no problem.My question is how netcat/socat can RELAY the udp broadcast packet to one of my IP public address so the message can be received by other client from internet ?

View 5 Replies View Related

Networking :: Use Netcat As A Bridge To Connect Two Server?

Apr 11, 2011

i have 3 servers in 2 dcs as follows; server 1 (dc1 - dmz) --- server 2 (dc1 - internal) --- server 3 (dc2 - internal) Now I have an application in server1 that have to connect to port 44000 in server 3 but dc refuse to open connection saying they do not open connections between dmz and dc2 (i have no say over this).

However I can connect to virtually any port from server1 <-> server2 and also server2 <-> server3. Is it possible to do something like;

server1 <-> server2 <-> server3:44000 using nc to get the app work.

View 3 Replies View Related

Networking :: Using Netcat To Make A Simple Proxy?

Nov 21, 2010

I made a simple proxy using netcat and it works great, the idea is to make the server and client communicate through two named pipes, file1, file2.

$ mknod file1 p
$ mknod file2 p
$ nc -l -p 12345 0<file1 1>file2 &
$ nc 192.168.2.118 80 1>file1 0<file2 &

The problem Im facing is that I cant seem to intercept the data going between the client and the server. I want to be able to have the data coming to the server in a variable, manipulate it and send it to the client, and the other way, have the data coming to the client in a variable, manipulate it and send it to the server.

Im running on an embedded device where tee, awk and many other commands are absent. how can I redirect the data to a variable, manipulate it and pass it to the other side, that is the question.

View 6 Replies View Related

Security :: Stop An IP From Connecting To Server?

Nov 9, 2010

Im using ubuntu and i run a game server. Ever since i posted my server i have an IP address trying to join my game on a different port everytime, seems random and its nonstop for a week since its been up.

[INFO]/72.52.102.33:[random 5 digit port] lost connection NONstop

I port scanned them and i think its not a person but some service or server type buisness.

I use a linksys router, i couldnt find anything on blocking IP's at the router from the outside.

Is there anything i can do to stop them before the get to this server to login?

View 12 Replies View Related

Ubuntu :: Stop Folder Popping Up When Connecting HDD?

Jan 25, 2010

I have an external hard drive that i keep my media on for use with XBMC. The problem is that when media centre is on and i attach the hard drive, Ubuntu's file browser pops up with the contents of my drive and this is over XBMC. When using a remote i am left stuck as i can't alt+tab out of the file browser. How do i disable this?

View 6 Replies View Related

Fedora :: Wifi Stop Connecting After Windows Boot?

Jun 29, 2011

I first booted into Fedora and it connected to the Interneting was working brilliantly. I then booted into windows for a session of TF2. After I booted back into Fedora, it wouldn't connect to my network.I did fix this by doing a hard reset on my router, BT homehub. It's just that I don't want to reset and apply custom settings all the time.

View 1 Replies View Related

Ubuntu Networking :: 9.10 Not Connecting To Internet At Home But Connecting From Work

Feb 9, 2010

I just installed Ubuntu 9.10 and its great. However when I connect to the internet at home it shows that the connection has been established but I still cant connect to the internet. My flatmates are all able to connect. However, I am able to connect from work both wirelessly and through an ethernet cable.

View 2 Replies View Related

General :: Sending File Via Netcat?

Jan 20, 2010

I'm using something like this to send file from one computer to another:To serve file (on computer A):

cat something.zip | nc -l -p 1234 To receive file (on computer B): netcat server.ip.here. 1234 > something.zip can I do the opposite? Let's say I have file on computer B and I want to send it to A but not the way I wrote above, but by making computer that's supposed to receive file (A) be 'listening' server and connect computer that's 'sending' file (B) to server and send the file? Is it possible? I think it might be but I'm not sure how to do this.

In case my above explanation is messed up: How do I send file TO 'server' instead of serving the file on server and then taking it FROM it (like I did above)?

View 2 Replies View Related

General :: Rc Interface With Netcat For Vlc In Windows

Jun 29, 2010

i have to control vlc which is running on my pc through console application.I heared like it can be controlled using netcat and rc interface but not getting the procedures how exactly its can be implemented.So if anyone knows pls explain me with steps.i want to do this in windows and i'm using vlc version 0.8.6.

View 1 Replies View Related

Ubuntu :: Clone A Hard Drive Using Dd & Netcat?

Jan 7, 2010

i'm trying to clone a hard drive using dd & netcat.

Quote:

on target:
nc -l -p 1333 |dd of=/dev/sdb
on source:
dd if=/dev/sdb |nc 192.168.0.5 1333

However after a while since the process was initiated I get a

I/O error in filesystem ("....") meta-data dev ...block 0x..... ("xfs_read_buf") error 5 buf count 512 XFS: size check 2 failed

Further digging showed that the target hard drive was less in space by 100 kb. Both are 1 T drives seagte but different models, hence the diff in space maybe.The data on the original drive is only 900 GB.

View 6 Replies View Related

Ubuntu :: Netcat Output Pipes And Redirection ?

May 25, 2010

I'm trying to redirect nc command output but I can't do it.

I have tried this:

And this:

But it seems doesn't work.

View 3 Replies View Related

Ubuntu Servers :: Why Can't Get Netcat To Work Even On Localhost

Oct 22, 2010

OK here's what I'm doing:

On terminal 1, I enter:

$ nc6 -vlp 5000
nc6: listening on 0.0.0.0 5000 ...

On terminal 2, I enter:

$ nc6 -v localhost 5000
nc6: ygt-asfandq (127.0.0.1) 5000 [5000] open

Now, as SOON as I make the connection on terminal 2, both netcats immediately quit back to the command prompt. The return code for both is 0.

I do not have ANYTHING in my firewall (I checked with sudo iptables -v -L)

I have attached a wireshark trace of the conversation..

View 2 Replies View Related

General :: Forward Sound Over The Network Using Netcat?

Mar 6, 2011

I've always been curious about this but say that you had computer A which runs headless and had music that you wanted to hear from computer B. Sure you can setup vlc or icecast on computer A and stream it. But what if you could forward the sound over netcat. For example, say when you play a sound file on Computer A data gets sent to /dev/snd.Would be possible to do something like the following.

Computer B
nc -lvp 6666 > /dev/snd
Computer A
cat /dev/snd | nc -v -w 5 computer_b 6666

And be able to hear sound playing on Computer A? point me in the right direction to find out about how to do this?

View 1 Replies View Related

Server :: Pipe 'echo' To 'netcat' - Sometime It Seems To Broken

Sep 2, 2010

I am running somes instances of Redis. I want to get Redis stats with following command:

Code:

$ echo "info" | nc <server_IP> <port>

but sometime it returns nothing. The first thing come to my mind is broken pipe or something like this. I always get the result if telnet to Redis and typing 'info' command. I also try pipe viewer to monitor the progress of data but it didn't help:

Code:

$ echo "info" | pv | nc <server_IP> <port>

View 2 Replies View Related

Ubuntu :: Cut Command Netcat - View The Foreign Ip Addresses?

Dec 28, 2010

So I opened a terminal and fired up netcat.I only wanted to view the Foreign Ip Addresses so I used

Code:
netstat --tcp --numeric | cut -c 45-65
and that gave me[code]...

There are two things that I am trying to accomplish here. The first is that I would like to "cut" the first three horizontal lines so that the output is only ip addresses.I tried tail but the number of different IPs changes so it still gives me those top lines. I tried head but that doesn't seem to give me any output at all.The second thing I would like to do is to filter out duplicate values. For example the output above has 2 duplicate entries of 66.102.7.101:80

View 5 Replies View Related

Programming :: Dynamically Supply Input To Netcat In A Script?

Mar 5, 2010

I am trying to write an irc bot to run interactive fiction games in a channel. I am connecting to the channel using nc. I'm having a hell of a time trying to supply input stdin for nc after the connection is established. Here's what's going on. I've got lines of plain text in a file with the irc commands required to identify the bot's ID and join the channel. I can connect easily using any of the following commands

cat inputfile | nc irc.servername.org 6667 -i 1
nc irc.servername.org 6667 -i 1 < inputfile
Named_Pipe | nc irc.servername.org 6667 -i 1
cat inputfile > Named_Pipe

With the first two commands nc connects, reads the file with some time between each line allowing the irc server to respond, bringing me into the channel. It then begins to receive stdin from the command line allowing me to do things like "privmsg #channelname :Hello World!!!" sending messages to the room. This is not the desired behavior. I require nc to take additional stdin from the inputfile if I cat additional text to the end of it.

The last set of commands using the named pipe seem like it does the same, but it doesn't actually send anything to the room, which indicates to me that perhaps nc is continuing to take stdin from the named pipe (this is the desired behavior) rather than dropping to the console for stdin. If I try to cat more plain text data to the end of the named pipe, however, either with something like "echo 'privmsg #channelname :Hello World!!!' > Named_Pipe" (or >> instead of >) or with a filename in place of the "echo" command the whole command simply seems to hang until I press ctrl-C.

I don't understand what I'm doing wrong. With anonymous and named pipes, and with redirection, the problem seems to be the same. nc seems to take it's stdin from the file until it hits the end of file, at which point I can no longer introduce new lines of plain text as stdin for the running nc process.

View 4 Replies View Related

OpenSUSE Network :: Port Forwarding Not Working - Tests Using Netcat

May 17, 2011

I have two SUSE(2.6) virtual machines running in the same subnet with two network cards each as shown below.

VM1------------------------------------------------------------------------------
appstage1:~ # ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:22:5A:24
inet addr:192.168.128.12 Bcast:192.168.128.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe22:5a24/64 Scope:Link

[Code]....

Ultimately my DB will run in VM2 and any DB requests coming in at 2055 of VM1 should be forwarded to port 2055 of VM2. Since I do not yet have a DB running I am trying to test with netcat.

View 5 Replies View Related

Software :: Capturing Data From IP Port In Background Using Telnet Or Netcat (nc)?

Mar 4, 2010

I'm trying to capture incoming/outgoing phone call data. Both telnet and nc have allowed me to easily direct this data to a file for later processing, HOWEVER I can't seem to get either to work as a background process. I want to put the connection into a shell script and run from cron.

View 4 Replies View Related

Programming :: Make A Bash Script That Will Open Up Port 23 For A Netcat Connection?

Apr 14, 2009

I'm starting to like making bash scripts. It's kewl making creative ones. Right now I'm trying to make a bash script that will open up port 23 for a netcat connection. Once there's a connection, I'd like for the script to open up xmms and play a sound effect, as well as echo a txt file to the desktop saying that a connection was made at this specific time. When I execute the script, it stops exection at the first line. So far I have this:

sudo nc -lvnp 23
while [ 1 ]
do

[code]...

View 8 Replies View Related

Fedora Networking :: Wired Networking Not Connecting In 12 With Windows Internet Connection Sharing?

Jan 16, 2011

I just want to use Internet Connection Sharing (ICS) to connect to the internet. I have done a massive amount of troubleshooting, but some of it seems to contradict itself, and the only two things that I know for sure are that it used to work, and that my Ethernet cable is not the problem. When I use Terminal utilities like ifup and dhclient it seems that it can not determine IP information, but when I try to put it in manually, the "Apply" button grays out right after I finish typing it in. When I try to connect normally, in KDE or GNOME, the icon acts like it's connecting, then instead of having the connected icon, I receive a notification that "the network has been disconnected", and it goes back to the disconnected icon.

Oh, and by the way, I know that I could probably find a workaround, but I have limited resources, and this used to work. The Linux is a Dell desktop with Fedora 12 and the Windows is a Windows 7 HP laptop.EDIT: I hope that I didn't mess something up, but I accidentally used system-network-config to try putting in the IP address there, and ended up changing it back to the original settings, but the computer is now calling it Auto Ethernet in the taskbar icon, although sudo iwconfig in the terminal still calls it eth0.

View 7 Replies View Related

Ubuntu Servers :: Port 21 Reported Open By Nmap And Netcat, But Blocked By Iptables?

Oct 11, 2010

Strange issue here when trying to verify firewall on Server 8.04. No ftp service running at all on server, but both nmap and netcat report port 21 as being open, even though it isn't.I am 100% sure that port 21 is not actually accessible and iptables rules are fine. Trying to connect to the port fails, yet nmap and netcat seem to report a "false positive"?Have also checked on a number of other servers I'm running, and this "false positive" seems to apply to all of them.

View 1 Replies View Related

Networking :: VPN Is Not Connecting?

Dec 29, 2010

I have a Squid Proxy Server running on centos in my office. The proxy server is running OK and I have to apply the proxy settings in web browsers to access internet. I have also created different users to access internet. I have also created a VPN server in proxy server. It is also running very fine. People from outside and inside the office can connect to the VPN server. I have also opened all ports on proxy server.

Problem is, if any of my employee try to connect any other VPN server outside my office, it does not get connected. It shows some "ERROR 619". Whenever I try to connect it always show this error after verifying username and password.

I am not getting that where the problem is. Is there firewall problem in proxy server? OR anything else?

View 1 Replies View Related

Networking :: Connecting VM And Host With NFS?

Mar 4, 2010

I am currently running ubuntu on a qemu-kvm virtual machine, and the host is fedora. I would like to mount a folder of the host machine on my VM, but never succeeded. The result of the command is :

root@armnlib-kvm:~# mount -v 192.168.1.10:/nfs /nfs
mount: no type was given - I'll assume nfs because of the colon
mount.nfs: timeout set for Thu Jul 7 06:02:43 2011

[code]....

And the showmount -e on the host gives :

Export list for cudak:
/nfs 10.0.2.15

View 9 Replies View Related

Ubuntu Networking :: Win 7 And 10.10 Not Connecting?

Feb 24, 2011

Forgive me if this has been answered, but searches have been un-fruitful. I recently built a 64 bit Ubuntu 10.10 pc. It is sitting right next to my Windows 7 Premium 64 bit machine. They can't see each other. I disabled Homegroup on my network. Now, when I try to access Ubuntu from Windows, I am prompted for a username and password. Both systems have the SAME UW and PW. It doesn't connect.When I go from Ubuntu to connect to Windows, I am prompted or Workgroup passwords.

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved