Most Popular

1500 questions
49
votes
3 answers

How to forward port 80 to another port on the samemachine?

How can I forward requests coming in on port 80 to another port on the same linux machine? I used to do this by changing nat.conf, but this machine that I'm using doesn't have NAT. What's the alternative?
Nohsib
  • 591
  • 1
  • 4
  • 3
49
votes
7 answers

Get IP addresses and computer names in the same network

What is the command that can be used to get the IP address and the names of the computers that are located in the same network? I am running Windows
Graviton
  • 2,865
  • 12
  • 42
  • 64
49
votes
7 answers

What is the best Linux filesystem for MySQL (InnoDB)?

I tried to look for benchmark on the performances of various filesystems with MySQL InnoDB but couldn't find any. My database workload is the typical web-based OLTP, about 90% read, 10% write. Random IO. Among popular filesystems such as ext3, ext4,…
Continuation
  • 3,080
  • 5
  • 30
  • 38
49
votes
8 answers

How to grep ps output with headers

How can I grep the PS output with the headers in place? These two process make up an app running on my server.... root 17123 16727 0 16:25 pts/6 00:00:00 grep GMC root 32017 1 83 May03 ? 6-22:01:17…
Ben
  • 3,800
  • 18
  • 65
  • 96
49
votes
7 answers

How can I filter https when monitoring traffic with Wireshark?

I want to observe the HTTPs protocol. How can I use a Wireshark filter to do that?
Amirreza
  • 684
  • 2
  • 7
  • 12
49
votes
2 answers

Splunk is fantastically expensive: What are the alternatives?

Possible Duplicate: Alternatives to Splunk? This has been discussed, but it has been several months, so it may be time to revisit it: Earlier discussion RE Splunk alternatives For the record, Splunk rocks. But the pricing is simply beyond what we…
Jonesome Reinstate Monica
  • 5,445
  • 10
  • 56
  • 82
49
votes
9 answers

How fast is 127.0.0.1?

I wonder if it is tied to my NIC at all or if the OS or driver intercepts and immediately returns data sent to the loopback address? Does the signal actually travel to my NIC then the NIC returns it?
user55029
49
votes
13 answers

Ban IP address based on X number of unsuccessful login attempts?

Is it possible to ban an IP address after X number of unsuccessful login attempts to a Windows Server? Not to a particular account, which I know how to do, but to the whole machine. We get hit pretty hard by brute force attacks trying to guess…
HeavyWave
  • 745
  • 1
  • 6
  • 9
49
votes
7 answers

Disable password complexity rule in Active Directory

Where do I go to disable the password complexity policy for the domain? I've logged onto the domain controller (Windows Server 2008) and found the option in local policies which is of course locked from any changes. However I can't find the same…
49
votes
4 answers

Using Same SSH Private Key Across Multiple Machines

I've got a Github repo I want to access from two different Linux machines. For the first machine, I followed Github's instructions for generating SSH keys, and added the resulting public key to Github. This client works fine. For the second…
Yarin
  • 1,366
  • 8
  • 19
  • 31
49
votes
7 answers

How do I sudo over sshfs?

On my local host alpha I have a directory foo that is mapped via sshfs to host bravo as follows: $ sshfs charlie@bravo:/home/charlie ~/foo However, on host bravo there is another user, delta, that I want to sudo /bin/su as, so that I can do work in…
dirtside
  • 1,551
  • 5
  • 17
  • 22
48
votes
11 answers

What is the difference between UDP and TCP?

My router has two protocols (and a "both" option) that I can select when setting up port forwarding: UDP and TCP. What is the difference between these two protocols and when would you select one over the other in port forwarding?
Guy
  • 1,839
  • 5
  • 22
  • 28
48
votes
2 answers

Redis Cluster: (error) MOVED

I have a Redis cluster with the following nodes: 192.168.0.14:6379 master (slots from 0 to 16383) 192.168.0.15:6379 slave (slots from 0 to 16383) 192.168.0.16:6379 master (without slots) Documentation says that any node can redirect queries to the…
Oleksandr
  • 733
  • 2
  • 10
  • 17
48
votes
3 answers

How to allow a user to use journalctl to see user-specific systemd service logs?

I am running user-level services in Ubuntu 16.04 LTS. For example, I have my test.service located at ~/.config/systemd/user/test.service. I was able to run the service by doing systemctl --user start test.target However, when I try to read its log…
ChromeHearts
  • 600
  • 1
  • 4
  • 8
48
votes
2 answers

Why was I able to delete a file owned by root in my home directory without being root?

So I was doing some maintenance on my server earlier today and noticed I was able to delete a file owned by root in my home directory. I was able to reproduce a sample: [cbennett@nova ~/temp]$ ls -al total 8 drwxrwxr-x. 2 cbennett cbennett 4096 Oct…
Carl Bennett
  • 783
  • 3
  • 7
  • 14