Recent content by Nemesis

  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?
Top