Fedora Networking :: Tool To Create Multiple Listening Servers On TCP And UDP Ports
Jan 17, 2011
Looking for a test tool where I can fire up any number of ports (TCP and / or UDP) to listen on.
I am currently getting my using nc but its only 1 port at a time (i know I can open up multiple sessions but thats cumbersome), it can't do UDP, and it closes at the end of the session.
A friend has suggested socat but it looks pretty much the same except it can do UDP, but also cumbersome, I have to manually output to a different file per port, etc.
Basically its so I can quickly test firewall and NAT rules.
In emule p2p filesharing there's this thing called the id that is low if you do not configure your router for certain ports to be listening for incoming connections, forwarded by the router to ports on your pc. When the id is low, your downloads take longer or something like that. But if you have no listening port, how can a peer download from you?
I have several sites running on a local server. Currently, they're all running on port 80. I need one particular site (and ONLY that site) to also accept connections on port 81.
If I browse to the server IP x.x.x.x:80 directly, Apache's behaviour of showing the default site should work as usual. But, if I browse to IP x.x.x.x:81, it should show a different site (the one that should be accepting both :80 and :81). This part is very important.
I was hoping something like the following would work, but it didn't Currently x.x.x.x:81 still shows what I've called myport80defaultsite.com below.
I'm looking for something to manage multiple machines. Within a few weeks we're getting about 32 machines to manage. We need to manage via SSH, SFTP and mySQL. Is there something available which gives an overview of the machines and opens a terminal or sftp session with the selected machine, with a shortcut or something like that?
I'm running a native dual-stack (ipv4 & ipv6) dsl connection.So, I've been adding firewall rules, cleaning up unwanted processes, etc to tighten security.I'm left with only 3 processes that are listening to ports. mysql, ipp & ssh.Still not quite sure I need mysql. I run Amarok but without using a database, so I don't actually use sql for anything that I'm aware of.Anyway, my question is;Is it possible to make any any of these processes listen to ipv4 only or ipv6 only? Is there a distinction there at all?
Example- ssh is currently listening to port 22 on both tcp & tcp6. I do all my ssh connections using 'ssh -6', so, Can I make ssh listen to tcp6 only, or ignore tcp ?
i started to look into upgrading my LTS ubuntu server instances to Lucid. one the notable things that i have discovered is the lack of support for Webmin; it seems that Debian is no longer supporting packages required by Webmin. But it also appears that ubuntu team believes that Webmin may actually cause problems as it works in a different way than that presumed by Ubuntu. so i am now left with no way to manage my 10+ instances of ubuntu server that i used for studying and research. it seems that i am left with cluster-ssh as an alternative. but are there other alternatives, ideally similar to webmin?
I am trying to get my own email server set up, and so far its been going pretty smooth, The only thing that is not working right now is receiving emails. I can send email just fine, and when they are sent they are even sent from the proper addresses, but when I try to send an email to my domain, it does not go through.
I have the port forwards set up on my router to send all traffic on port 25 over to my mail server, I can telnet to the smtp server from the localhost just fine, but when I try to telnet from another computer on my network it gives me this message
Quote:
So I ran a netstat -an on my mail server to see what ip address smtp is listening on and I get this result
Quote:
Now most guides I find for this problem just say to un comment the line in the master.cf that says "smtp inet n - - - - smtpd", the problem is that line is already uncommented and I am still not able to telnet to port 25 from any machine on my network.
Here is my main.cf, tell me if there is anything that I can do.
Currently Im having a syslog server that consolidate firewall logs on port 514 udp. Im also having a IDS device that I wish to push its logs to this particular syslog server so that I can retrieve my IDS logs on this server as well.
Is it possible to do so?Having syslog listening on port 514 for both firewall and IDS logs? If it is possible will the logs be recorded in a single log file?Or will it be recorded in a separate log file ie. firewall.log, IDS.log etc?? I wish to have them in separate individual log files or else there will be hard time segregating the log entries in a single file. Can anyone advice on how to achieve this??
recommend a utility to let me automatically apply shell commands I type to a list of given remote machines?I'm configuring and maintaining multiple servers all running Fedora 12 and I want them to have exactly the same configuration. I also need to check out code from subversion onto these machines; the same code from the same location into the same directory. I know I could use ssh to run each command individually for each machine, but is there a tool that will make this much easier?
Is there some traceroute-like tool that shows ports as well as IP addresses? This is more for seeing how NAT works (on my home network) than for a practical need.
I've been struggling for days trying to open port 53 and 25 but can't get it to work. My iptables at /etc/sysconfig contains the following: # Firewall configuration written by system-config-firewall # Manual customization of this file is not recommended. *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] .....
On the server machine when I do port scan with nmap I see the following result: Starting Nmap 4.76 [URL] at 2010-03-28 01:03 CET Warning: Hostname localhost resolves to 2 IPs. Using 127.0.0.1. Interesting ports on localhost (127.0.0.1): Not shown: 986 closed ports .....
But when I try to do telnet from an external machine, e.g: telnet <IP of host> 53 I get: Connection refused telnet: Unable to connect to remote host
I also did a port scan with a tool on an external machine but port 53 and 25 weren't listed as opened ports. Also CheckDNS.net on the server returns "Connection reset. Probably DNS server is offline". I am 100% sure that named and sendmail are running. When I do a ps -aux I see: named 9261 0.0 0.3 85528 14784 ? Ssl 00:46 0:00 /usr/sbin/named -u named root 2550 0.0 0.0 9536 1960 ? Ss Mar23 0:02 sendmail: accepting connections
I am trying to setup a VPN on my FC 12 box. Looks like getting openvpn to work behind NAT is as easy as just forwarding the ports. Do I need to forward any specific protocols (GRE, etc)? Also, can I do this with one Ethernet port (IE: RJ-45 jack), or do you recommend a second ethernet port? I could add in another PCI ethernet card if it makes it easier. Anyone know if a single ethernet jack will work or do I need two?
I need to set a NAC (PacketFence) system , i would like to set in my case eth0 to work with several different VLAN'S i created ifcfg-eth0.2 copied from orginal ifcfg-eth0 and changed the ip and append VLAN=yes but when i am triyng to load ifcfg-eth0.2 i get error
I had to reinstall my DMZ webserver the other day. Now I cannot figure out for the life of me figure out why Apache refuses to listen on eth1 it will only listen on eth0. I have it setup so that it listens with * I'm not specifying a particular IP for it to listen on. When I do specify it still doesn't work.
I tried to see if my port was open but got a message saying Error: I could not see your service on 58.164.165.88 on port (80) Reason: Connection refused could someone us out here
I just done a brand new install of fed12 and did all the yum updates. Apache seems to start ok and I always liked the http config tool but it won't run on Fedora 12. I downloaded and installed system-config-httpd.noarch 5:1.4.6-1.fc12 and it all went fine but when I try to start it I get the usual box asking for my root password, I type it in and press enter, the box disappears and then....nothing. If I run system-config-httpd in a terminal I get the same box asking for root passowrd but when I enter it I get a long scroll of text which ends with:
line 4: 2137 Aborted (core dumped) /usr/bin/python /usr/share/system-config-httpd/ApacheConf.py
I don't know what causes this. Is there any way to get the http config tool working?
I need to set a NAC (PacketFence) system (CentOS 5.5), i would like to set in my case eth0 to work with several different VLAN'S i created ifcfg-eth0.2 copied from orginal ifcfg-eth0 and changed the ip and append VLAN=yes but when i am triyng to load ifcfg-eth0.2 i get error
my ifcfg-eth0 goes as follow
# Intel Corporation 82578DM Gigabit Network Connection # Normal VLAN Lan adapter (Managment)(On-boad 1st NIC) DEVICE=eth0
Our requirement is to create multiple user account with UID:-
/tmp/users.txt rohit guna samsir
like this 100 user names in /tmp/users.txt file
/tmp/uid.txt 2001 3789 1000134 like this 100 UID's in /tmp/UID.txt file
The script should take input from both the files and create user account. for example user account rohit should have an UID of 2001 and user samsir should have an UID of 1000134.
How to separate sftp and ssh and run on different ports.
i.e. a) sftp on port x b) ssh on port 22
I searched from the web and there are no detailed instructions. They suggested something like separating sshd_config into two files (file A and file B) and run two instances. Each instance points to its configuration file.
However, they didnt write down the detailed procedure of:
a) how to modify file A and file B (i.e. which line should insert specific commands)?
I'm trying to connect one computer to two others in an ad-hoc infrastructure.
[computer 1] ---- [computer 2] ---- [computer 3]
computer 2 is running Linux and has a single NIC wlan0. I want to it to connect to both computer 1 and computer 3 so each computer can talk to the other. No switch is available so it needs to be an ad-hoc setup.
Say I have this computer and this computer has a 1TB hard disk. I install Fedora 13 on this disk and let the installer do as it wishes with this 1TB of space. I'm going to end up with the LVM thingy. (Can you tell yet that I know nothing about LVM?). Can I, at a later date, use some of the available space to create another partition to install another OS on. Can I create multiple partitions to install several other OS's on?
I am using a C application which connects to various other C applications at different ports through TCP,sends requests to all of them and then waits for the responses. The problem is that when the requests are fewer it gives a good response but with the increase in load the port at which the master application is listening get hogs and is unable to receive the responses.Can you please suggest the best way to tackle this issue? Is it possible for the master application to listen at multiple ports so that the load gets distributed and how?
I am attempting to create a form in bash that would display multiple radio lists with an OK and cancel button on the bottom. I tried using the command line tool dialog, which is really nice. But it won't let me do multiple radio lists on the same form.
jack uses 2 ports for input and 2 for output. I have a SoundBlaster 5.1vx card, and I would like to use a "line-out" plug for monitoring. But when I try to get jack to reserve four extra outputs by using the switch "-o 4", it gives me an error.