Search results

  1. Nemesis

    (Solved) forward port to another computer?

    Hi again, sorry for the delay. I actually tried to disable ufw, but everytime I restarted the server it was enabled again, even thou I actually used the disable function. However, now does it suddenly work, maybe me disabling it and the system reactivating it again modified the rules somehow...
  2. Nemesis

    (Solved) forward port to another computer?

    well, when I was saving, it just said error on line 8, it didn't specify anything... regarding the list, I was afraid you wanted to see it, i have never ever seen a stranger list, and I have no idea what half of it means, but here we go: *nat :PREROUTING ACCEPT [144:39368] :INPUT ACCEPT...
  3. Nemesis

    (Solved) forward port to another computer?

    yep, I got that one installed, but something about the line -A FORWARD -o enp0s3 -j ACCEPT is wrong, at least what it says when I'm trying to save it.. but running sudo iptables -A FORWARD -o enp0s3 -j ACCEPT in the terminal works... no idea why?
  4. Nemesis

    (Solved) forward port to another computer?

    yes, will iptables-save > /etc/iptables/rules.v4 save the information above? .. nope, it didn't..
  5. Nemesis

    (Solved) forward port to another computer?

    after a lot of trial and errors, it suddenly worked. But as a newbie, I'm not sure if all this is necessary, and how do I get it to stick? sudo iptables -t nat -A POSTROUTING -o enp0s3 -j MASQUERADE sudo iptables -A FORWARD -o enp0s3 -j ACCEPT sudo sysctl -w net.ipv4.ip_forward=1 sudo iptables...
  6. 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...
  7. Nemesis

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

    Could work, but not if you want to keep the first file..
  8. 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...
  9. Nemesis

    Cron runs a non-existing variant of . sh script

    I've actually solved this one, it was an error in a script, (the one you just solved for me), that caused cron to send an email, which failed, and when I saw the error message was about a mail, and not the "messer" script. I faulty assumed that it was complaining about a previous cron function...
  10. Nemesis

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

    You got it completely right, it worked, thx a lot! Not so concerned about security since this is a computer only I have physical access to..
  11. 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...
  12. 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...
  13. Nemesis

    Can't run a copied program

    holy ... It worked, thx alot!
  14. Nemesis

    Can't run a copied program

    I'm accessing the Linux view vnc by phone, so all ways to shorten commands are good. But, now I listed the directory, and it is an executable file, I'm updating the original question with a screenshot.
  15. Nemesis

    Can't run a copied program

    Thx alot, the command ls -l -a gave me the information I needed (-a for hidden files) Isn't there anyway to make so ls uses -l -a by default?
  16. Nemesis

    Can't run a copied program

    There are actually no way to delete a post, so everyone, ignore this, I'm not sure the file is a program anyway..
  17. 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..
  18. Nemesis

    gpg/gpg2 key creation just stops after entering passphrase

    Not anyone that recognize this issue? Maybe there is something missing that I need to install, since this is a minimal setup?
  19. 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...
  20. Nemesis

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

    pgrep -l "pl" showed 3 results, none of them was the wanted result. ps -A | ag "pl" got 7, and 3 of them was the result i was searching for.. So thanks for the help!
Top