Skocz do zawartości

jambos

Użytkownicy
  • Zawartość

    44
  • Rejestracja

  • Ostatnio

Posty napisane przez jambos


  1.  

    iptables -vnL
    Chain INPUT (policy DROP 16098 packets, 1212K bytes)
     pkts bytes target     prot opt in     out     source               destination 
       33  5485 fail2ban-ssh  tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            multiport dports 22
        0     0 fail2ban-VESTA  tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:8083
        0     0 fail2ban-MAIL  tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            multiport dports 25,465,587,2525,110,995,143,993
       33  5485 fail2ban-SSH  tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:22
       33  5485 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:22
        0     0 ACCEPT     tcp  --  *      *       85.202.152.116       0.0.0.0/0            multiport dports 80,443
        0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            multiport dports 21,12000:12100
      538 37201 ACCEPT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:53
        0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            multiport dports 25,465,587,2525
        0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            multiport dports 110,995
        0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            multiport dports 143,993
        0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            multiport dports 3306,5432
        0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:8083
       80  6035 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0   
       10  1294 ACCEPT     all  --  *      *       91.196.48.182        0.0.0.0/0   
      102 29285 ACCEPT     all  --  *      *       127.0.0.1            0.0.0.0/0   
        0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp spt:20
        0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp spt:21
        0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp spt:22
        0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp spt:25
       16  1859 ACCEPT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp spt:53
        0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp spt:80
        0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp spt:443
        0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp spt:110
        8   608 ACCEPT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp spt:123
        0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp spt:143
        0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp spt:3306
        0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp spt:5432
        0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp spt:8080
        0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp spt:8433
        0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp spt:8083
        5   473 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp spts:12000:12100
        0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            state RELATED,ESTABLISHED
     
    Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
     pkts bytes target     prot opt in     out     source               destination 
     
    Chain OUTPUT (policy ACCEPT 742 packets, 106K bytes)
     pkts bytes target     prot opt in     out     source               destination 
     
    Chain fail2ban-MAIL (1 references)
     pkts bytes target     prot opt in     out     source               destination 
     
    Chain fail2ban-SSH (1 references)
     pkts bytes target     prot opt in     out     source               destination 
       33  5485 RETURN     all  --  *      *       0.0.0.0/0            0.0.0.0/0   
     
    Chain fail2ban-VESTA (1 references)
     pkts bytes target     prot opt in     out     source               destination 
        0     0 RETURN     all  --  *      *       0.0.0.0/0            0.0.0.0/0   
     
    Chain fail2ban-ssh (1 references)
     pkts bytes target     prot opt in     out     source               destination 
        0     0 REJECT     all  --  *      *       89.248.171.19        0.0.0.0/0            reject-with icmp-port-unreachable
       33  5485 RETURN     all  --  *      *       0.0.0.0/0            0.0.0.0/0   
        0     0 RETURN     all  --  *      *       0.0.0.0/0            0.0.0.0/0   
     
    Chain vesta (0 references)
     pkts bytes target     prot opt in     out     source               destination 
    

  2. Witam wszystkich :) próbowałem dodać pewną regułe aby firewall mnie nie blokował ale niestety od moich prób serwer dedykowany przestał odpowiadać ..

    Puściłem takie oto reguły

    iptables -A INPUT -s xx.xx.xx.xx -j ACCEPT gdzie xx to moje ip

    iptables -A INPUT -p tcp -s xx.xx.xx.xx --dport PORT -j ACCEPT i gdzie PORT to dalem port a xx to ponownie moje ip

    w panelu vestacp takze dodalem moje ip dla portu 80 oraz 443 a potem juz wszystko przestalo dzialac prosilbym o kontakt tu na forum badz gg 8614498

    Z góry dziękuje za pomoc


  3. witam wszystkich serdecznie. Mam problem instalowalem juz kiedys cert ssl na directadmin na hostingu i wszystko bylo ok. Teraz probowalem na dedyku lecz niestety cos nie dziala

    Mam panel vestacp i przez niego dodalem support ssl.

    Certyfikat to comodo ssl aktywowany wszystkie dane w 100% dobrze wypelnione itd.

    pomoze ktos ? gg 8614498 skype jambos1948 lub jak da rade to w temacie :)

    Pozdrawiam.




  4. 2015/01/26 07:11:03 [error] 14989#0: *56 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: mojeip, server: example.com, request: "GET /favicon.ico HTTP/1.1", host: "domena"
    2015/01/26 07:12:12 [error] 14989#0: *57 upstream timed out (110: Connection timed out) while reading response header from upstream, client: mojeip, server: example.com, request: "POST /postiner/index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "domena", referrer: "http://domena/postiner/index.php"
    2015/01/26 07:12:12 [error] 14989#0: *57 open() "/var/www/www.domena/50x.html" failed (2: No such file or directory), client: mojeip, server: example.com, request: "POST /postiner/index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "domena", referrer: "http://domena/postiner/index.php"
    2015/01/26 07:12:13 [error] 14989#0: *57 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: mojeip, server: example.com, request: "GET /favicon.ico HTTP/1.1", host: "domena"
    2015/01/26 07:18:31 [error] 14989#0: *60 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: mojeip, server: example.com, request: "GET /favicon.ico HTTP/1.1", host: "domena"
    2015/01/26 07:20:31 [emerg] 16187#0: unexpected "}" in /etc/nginx/sites-enabled/default:50
    2015/01/26 07:20:31 [emerg] 16188#0: unexpected "}" in /etc/nginx/sites-enabled/default:50
    2015/01/26 07:21:05 [error] 16201#0: *1 directory index of "/var/www/www.domena/" is forbidden, client: mojeip, server: example.com, request: "GET / HTTP/1.1", host: "domena"
    2015/01/26 07:21:05 [error] 16201#0: *1 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: mojeip, server: example.com, request: "GET /favicon.ico HTTP/1.1", host: "domena"
    2015/01/26 07:21:07 [error] 16201#0: *2 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: mojeip, server: example.com, request: "GET /favicon.ico HTTP/1.1", host: "domena"
    2015/01/26 07:21:10 [error] 16201#0: *3 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: mojeip, server: example.com, request: "GET /favicon.ico HTTP/1.1", host: "domena"
    2015/01/26 07:21:14 [error] 16201#0: *5 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: mojeip, server: example.com, request: "GET /favicon.ico HTTP/1.1", host: "domena"
    2015/01/26 07:22:19 [error] 16201#0: *7 upstream timed out (110: Connection timed out) while reading response header from upstream, client: mojeip, server: example.com, request: "POST /sa.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "domena", referrer: "http://domena/sa.php"
    2015/01/26 07:22:19 [error] 16201#0: *7 open() "/var/www/www.domena/50x.html" failed (2: No such file or directory), client: mojeip, server: example.com, request: "POST /sa.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "domena", referrer: "http://domena/sa.php"
    2015/01/26 07:22:19 [error] 16201#0: *7 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: mojeip, server: example.com, request: "GET /favicon.ico HTTP/1.1", host: "domena"
    2015/01/26 07:23:24 [error] 16295#0: *1 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: mojeip, server: domena, request: "GET /favicon.ico HTTP/1.1", host: "domena"
    2015/01/26 07:24:28 [error] 16295#0: *2 upstream timed out (110: Connection timed out) while reading response header from upstream, client: mojeip, server: domena, request: "POST /sa.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "domena", referrer: "http://domena/sa.php"
    2015/01/26 07:24:28 [error] 16295#0: *2 open() "/var/www/www.domena/50x.html" failed (2: No such file or directory), client: mojeip, server: domena, request: "POST /sa.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "domena", referrer: "http://domena/sa.php"
    2015/01/26 07:24:28 [error] 16295#0: *2 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: mojeip, server: domena, request: "GET /favicon.ico HTTP/1.1", host: "domena"
    2015/01/26 07:26:56 [error] 16295#0: *6 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: mojeip, server: domena, request: "GET /sa.php HTTP/1.1", host: "domena"
    2015/01/26 07:26:56 [error] 16295#0: *5 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: mojeip, server: domena, request: "GET /favicon.ico HTTP/1.1", host: "domena"
    2015/01/26 07:26:59 [error] 16295#0: *7 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: mojeip, server: domena, request: "GET /favicon.ico HTTP/1.1", host: "domena"
    2015/01/26 07:28:04 [error] 16295#0: *8 upstream timed out (110: Connection timed out) while reading response header from upstream, client: mojeip, server: domena, request: "POST / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "domena", referrer: "http://domena/"
    2015/01/26 07:28:04 [error] 16295#0: *8 open() "/var/www/www.domena/50x.html" failed (2: No such file or directory), client: mojeip, server: domena, request: "POST / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "domena", referrer: "http://domena/"
    2015/01/26 07:28:04 [error] 16295#0: *8 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: mojeip, server: domena, request: "GET /favicon.ico HTTP/1.1", host: "domena"


    oto error log po chwili dzialania skryptu wywala 404 not found z ta sama sciezka o co chodzi ? skrypt korzysta z api facebooka oraz pliku txt.

    Mam najprostrzy vps z ovh 1gb ram nic na serwerze nie ma oprocz tego skryptu .. o co chodzi ?


  5. Podaj adres :)

    92.222.40.37

    zainstalowalem od nowa po zainstalowaniu php i wrzuceniu pliku index.php z zawartoscia

    <?php
    phpinfo();
    ?>
    Na stronie jest 502 bad gateway
    
    # You may add here your
    # server {
    # ...
    # }
    # statements for each of your virtual hosts to this file
     
    ##
    # You should look at the following URL's in order to grasp a solid understanding
    # of Nginx configuration files in order to fully unleash the power of Nginx.
    # http://wiki.nginx.org/Pitfalls
    # http://wiki.nginx.org/QuickStart
    # http://wiki.nginx.org/Configuration
    #
    # Generally, you will want to move this file somewhere, and start with a clean
    # file but keep this around for reference. Or just disable in sites-enabled.
    #
    # Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
    ##
     
    server {
    listen 80;
    server_name www.fast-app.pl;
    access_log /var/log/nginx/www.fast-app.pl.access.log;
     
    ## Lokacja strony:
    location / {
    root /var/www/www.fast-app.pl;
    index index.php;
    }
     
    ## „Inne” traktowanie obrazkow i plikow statycznych
    location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml)$ {
    access_log off;
    expires 30d;
    root /var/www;
    }
     
    ## Parsowanie wszystkich plikow .php w katalogu strony: /var/www/www.fast-app.pl
    location ~ .php$ {
    fastcgi_split_path_info ^(.+\.php)(.*)$;
    fastcgi_pass backend;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME /var/www/www.fast-app.pl$fastcgi_script_name;
    include fastcgi_params;
    fastcgi_intercept_errors on;
    fastcgi_ignore_client_abort off;
    fastcgi_connect_timeout 60;
    fastcgi_send_timeout 180;
    fastcgi_read_timeout 180;
    fastcgi_buffer_size 128k;
    fastcgi_buffers 4 256k;
    fastcgi_busy_buffers_size 256k;
    fastcgi_temp_file_write_size 256k;
    }
     
    ## Blokowanie widzenia plików .htaccess & .htpassword
    location ~ /\.ht {
    deny all;
    }
    }
     
    ## Ustawienie portu, na którym będzie się odbywać komunikacja z PHP
    upstream backend {
    server 127.0.0.1:9000;
    }
     
    # another virtual host using mix of IP-, name-, and port-based configuration
    #
    #server {
    # listen 8000;
    # listen somename:8080;
    # server_name somename alias another.alias;
    # root html;
    # index index.html index.htm;
    #
    # location / {
    # try_files $uri $uri/ =404;
    # }
    #}
     
     
    # HTTPS server
    #
    #server {
    # listen 443;
    # server_name localhost;
    #
    # root html;
    # index index.html index.htm;
    #
    # ssl on;
    # ssl_certificate cert.pem;
    # ssl_certificate_key cert.key;
    #
    # ssl_session_timeout 5m;
    #
    # ssl_protocols SSLv3 TLSv1;
    # ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
    # ssl_prefer_server_ciphers on;
    #
    # location / {
    # try_files $uri $uri/ =404;
    # }
    #}
    
    oto zawartosc pliku default
×