Search results

  1. Nemesis

    (Solved) forward port to another computer?

    I've got one Linux server (Ubuntu) that has a public IP. I want by connecting to it, on a specified port, be routed to another Linux computer on the same local network. is this possible? found this online; iptables -t nat -A PREROUTING -p tcp --dport 49620 -j DNAT --to-destination...
  2. Nemesis

    mv command exist with code 0, even if it falls..

    I'm currently writing a script to rename a file (by using the mv command) However, when the move fails, due to file already exist, the mv command exist with code 0 If I'm pressing ctrl-c, I will get exit code 130.. Is mv supposed to behave like this? How why, I'm confused.. Isn't there anyway...
  3. Nemesis

    execute commands from .sh script don't work, wrong "space-signs"?

    hi all! I've been trying to get a .sh script to work the past days but I'm obviously not smart enough to grasp the concept, because it doesn't work. the script is suppose to send a message via messenger, and the program messer the "solution" but something isn't right, because it says Logging...
  4. Nemesis

    Cron runs a non-existing variant of . sh script

    I've been encountered a strange phenomena. I've been messing with Cron, so it runs a script called startup.sh, which it does. First I wrote the script to send an email, but later I rewrote it to send a message instead. However, when restarting the server, nothing happened. Then I checked the...
  5. Nemesis

    Can't run a copied program

    I copied a program that had spaces and stuff that made it difficult to write in the terminal. I simply copied it to pss (sudo cp [appname] [pss]) But when I write pss in the terminal, it says that There is something called pss in that directory now..
  6. Nemesis

    gpg/gpg2 key creation just stops after entering passphrase

    I've just installed Ubuntu 18.04.3 LTS mini (to use as a server) But when I'm trying to create a new gpg/gpg2 key it just stops after I've confirmed my passphrase.. nothing happens after that. It don't freeze, I can stop it with ctrl-c This one was running for an hour before I stopped it. Any...
  7. Nemesis

    List all active programs that starts with letter....

    Hi all! I've been looking around to see if there is any way to list all active programs/services by only entering one or a few letters? Something like: ps -A pl* And it would list all that starts with pl... or: ps -A *pl* that list all that contains the letter pl? This would be a lot easier...
  8. Nemesis

    Adding program rules to ufw application.d open ports to ALL apps?

    Hi all! I've been looking around for a solution to specify ufw firewallrules for a specific program. I found out that using the applications.d should do the trick. However, upon adding the rules to the firewall, the firewall opens the port for all applications, not only the one I specified...
  9. Nemesis

    Blocking all outgoing ports not allowed?

    Hi all! I'm trying to block all outgoing ports, so only my VPN client can access the net. No, I'm not using the terminal, I'm running Linux Mint 19.2, and the firewall gui. However, the firewall don't accept the ports (see screenshot) I can't press the add button, since it's grayed out. There...
Top