Recent content by nickolasm5

  1. N

    How to list services, start / stop services via script?

    one more question - is it possible, and if yes - how to add echos from the scripts to system log that is visible in the GUI?
  2. N

    How to list services, start / stop services via script?

    seems to work like that: for pid in `ps -w | grep "ck-client" | awk '{print $1}'` do echo "killing $pid" kill -9 $pid done the scirpt that starts cloak client: /mnt/sda1/usr/bin/ck-client -s xxx.xxx.xxx.xxx -l 1984 -c /mnt/sda1/etc/config/cloak/ckclient.json Maybe there are better ideas?
  3. N

    How to list services, start / stop services via script?

    the description of the software - https://github.com/cbeuw/Cloak I created the sript that starts the software (client) on services start the prosess starts and works correctly, yet - e.g. if the WAN cable is unpluged for some time or any other similar reason, the service needs to be restarted to...
  4. N

    How to list services, start / stop services via script?

    but how do I know the name of the process? or its pid? I cold find the PID using top command, yet would it always be the same (4430)?
  5. N

    How to list services, start / stop services via script?

    Yes, the service is started via sript and works perfect. Yet it can fail if there are some connection issues - I wan't to run periodic checks to make sure it runs (start it back if needed) basiclally I want to find how to check if the service is up and stop / restart it (I even don't know how it...
  6. N

    How to list services, start / stop services via script?

    Hello, I am trying to set up a script that will check OpenVPN connection, if that fails - restart sevice. The service that is needed to be restarted is Amnezia Cloak. Now I've created without issues - checking the state - if ifconfig tun11 | grep -q...
  7. N

    AC 86U strange error 386.14.2

    Getting such in log: Dec 17 17:36:32 kernel: dcd/20429: reached RLIMIT_SIGPENDING, dropped signal 62 Dec 17 17:36:35 kernel: dcd/20429: reached RLIMIT_SIGPENDING, dropped signal 62 Dec 17 17:36:37 check_watchdog: [check_watchdog] restart watchdog for no heartbeat Dec 17 17:36:37 rc_service...
  8. N

    dedicated router for OpenVPN

    As I remeber there is no option to forbid that via GUI? So both FW / Routing only via script / SSH? Or it can be done via "Firewall - Network Services Filter"?
  9. N

    dedicated router for OpenVPN

    I already have a router (#1) that is set up and fucntioning as expected. I need to set up additional dedicated router (#2) (HW accelerated ASUS) that will be a OpenVPN client for a remote server. It should be connected to router 1 via LAN, get local IP via DHCP for the WAN interface, and it will...
  10. N

    strange PPTP crashes

    No. Mikrotik is the client, asus is the server. There are no problems if using Mikrotik (client) - Asusu (server) via PPTP (except for those errors in the logs), but if I try to set up Mikrotik (client) - Asusu (server) via OpenVPN, it is not possible to view lan behind the Mikrotik, as I can't...
  11. N

    strange PPTP crashes

    Mikrotik OpenVPN interface doesn't have any options to add OpenVPN routing rules (as for the client side) if I set up push route rules from the Asus (server) side Mikrtotik starts failing to connect. I've tried multiple settings with OpenVPN without any success, and switched to mikrotik being a...
  12. N

    strange PPTP crashes

    Yep, I understand all this. It never worked correctly, as I've set it up recently. It crashes randomly. (yet as I see this even doesn't break the connection) The bakground is following - I have a lan behind double nat, and the only way to be able to connect to it from outside is to connect it...
  13. N

    strange PPTP crashes

    AC 86U 386_12_2 Jul 10 02:44:27 kernel: pptpctrl[15095]: unhandled level 3 translation fault (11) at 0x00000000, esr 0x92000007 Jul 10 02:44:27 kernel: pgd = ffffffc01311c000 Jul 10 02:44:27 kernel: [00000000] *pgd=00000000124d3003, *pud=00000000124d3003, *pmd=00000000116e1003...
  14. N

    Script to add route after a VPN client connects

    #!/bin/sh if [ $(ip route show 192.168.7.0/24 | wc -l) -eq 0 ]; then echo "--- Route is down ---" ip route add 192.168.7.0/24 via 10.8.20.2 fi if [ $(ip route show 10.10.200.0/24 | wc -l) -eq 1 ]; then echo "--- Route Enabled ---" fi exit
  15. N

    Script to add route after a VPN client connects

    Hi I've set up a PPTP client that connects from a remote site (192.168.7.0) and gets IP 10.8.20.0 I've setup a script that adds route ip route add 192.168.7.0 via 10.8.20.0 on firewall startup, and everything works Yet I noticed that if for some reasons there were reconnect of that client this...
Back
Top