Search:

Type: Posts; User: pedrommone; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    190

    [ubuntu] Keyboars issue

    Hello,

    I'm using ubuntu 12.10 on my xps l502x, the thing is, on windows i've used the USA international keyboard, now i'm using the same setup and some of my keys are not working like the...
  2. Thread: APF Rules

    by pedrommone
    Replies
    0
    Views
    268

    [ubuntu] APF Rules

    Hello, I've a few servers running as ssh proxy, someone started to DDOS me, i've installed ddos deflate and apf. The traffic made by ddos downgrade from 10 MB/s to 1 MB/s but it still make my users...
  3. Replies
    0
    Views
    326

    Hide welcome message

    How I cant remove this message?





    The programs included with the Ubuntu system are free software;
    the exact distribution terms for each program are described in the
    individual files in...
  4. Replies
    10
    Views
    963

    [ubuntu] Re: IPtables settings

    But I need to filter all the output rules, I cant allow them all!
  5. Replies
    10
    Views
    963

    [ubuntu] Re: IPtables settings

    What do you mean? I can understand what you are trying to say
  6. Replies
    10
    Views
    963

    [ubuntu] Re: IPtables settings

    Ofc I'm




    root@washington:~# iptables -A OUTPUT -o eth0 -p tcp --dport 80 -j ACCEPT
    root@washington:~# iptables -A OUTPUT -o eth0 -p udp --dport 53 -j ACCEPT
    root@washington:~# iptables -A...
  7. Replies
    10
    Views
    963

    [ubuntu] Re: IPtables settings

    Well, ive ran it on a new server, without any config, dont know whats wrong, I cant connect to mysql port aswell!
  8. Replies
    10
    Views
    963

    [ubuntu] IPtables settings

    Hello guys, Im trying to setup a few simple rules



    root@washington:~# iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
    root@washington:~# iptables -A OUTPUT -m state --state...
  9. Thread: SSH Tunnel

    by pedrommone
    Replies
    2
    Views
    543

    [ubuntu] SSH Tunnel

    How I can route my whole traffic to another ubuntu server with ssh? I mean, everything, like a VPN, but I want a SSH tunnel.

    Thanks in advance.
  10. Replies
    9
    Views
    1,500

    Re: Parse json and execute commands

    Is my fault, it was working, but in some boxes is not working, I dont know how!
  11. Replies
    9
    Views
    1,500

    Re: Parse json and execute commands

    Heres mine crontab



    # Edit this file to introduce tasks to be run by cron.
    #
    # Each task to run has to be defined through a single line
    # indicating with different fields when the task will...
  12. Replies
    9
    Views
    1,500

    Re: Parse json and execute commands

    Im trying to add the job with the following command, but is not working!


    ubuntu@ip-10-252-16-247:~$ sudo crontab /etc/iptables.py 1 * * * * -u root
    "/etc/iptables.py":1: bad minute
    errors in...
  13. [ubuntu] Re: Unable to resolve host after iptables rules

    Ok, thanks mate!
  14. [ubuntu] Re: Unable to resolve host after iptables rules

    Well, I'm running a proxy server, so the 'entrance' port is 22 and the output port is 7171 and 7175, my rules now are:


    [
    "iptables --flush",
    "iptables -A INPUT -m state --state...
  15. [ubuntu] Re: Unable to resolve host after iptables rules

    Now Im using those rules


    [
    "iptables --flush",
    "iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT",
    "iptables -A OUTPUT -m state --state RELATED,ESTABLISHED -j ACCEPT",...
  16. [ubuntu] Re: Unable to resolve host after iptables rules

    Also, now I cant connect to mysql server and I cant make curl requests, whats wrong with my rules?
  17. [ubuntu] Re: Unable to resolve host after iptables rules

    This server is running as a ssh proxy, so everyone connects with port 22 and I block all outputs, except 7171 and 7175.
  18. [ubuntu] Unable to resolve host after iptables rules

    I've ran the following rules:


    [
    "iptables --flush",
    "iptables -P INPUT DROP",
    "iptables -P FORWARD DROP",
    "iptables -P OUTPUT DROP",
    "iptables -A INPUT -i eth0 -p tcp --dport 22 -m state...
  19. Replies
    9
    Views
    1,500

    Re: Parse json and execute commands

    I dont care about the security stuff right now, Im testing some ideias and I want to see how it works. Anyway, how make it always execute as root?
  20. Replies
    9
    Views
    1,500

    Parse json and execute commands

    Hi, I've a remote json, and I want fetch it and execute it every 6 hours, its a json with firewall settings (for iptables). Heres an example of the json


    [
    "iptables --flush",
    "iptables -P...
  21. Hows the best way to import iptables rules?

    Im trying to reach the best way to manage my firewall settings remotely, the best way I have is importing the settings from a http-json. Witch I can manage with PHP. Is this a good way? I set a cron...
  22. Replies
    6
    Views
    577

    Re: Cat is executing commands

    Thank buddies, its working now!
  23. Replies
    6
    Views
    577

    Cat is executing commands

    When I try to cat a block and save it, some function are executed, like this one


    USER_ID=$(mysql -u $DB_USER -p$DB_PASS -h$DB_HOST $DB_NAME --disable-column-names -e "SELECT id FROM users WHERE...
  24. Re: Run another bash from bash extending variables

    Thanks! It is not working for now, I got another idea, if someone can help-me, here's the thread: http://ubuntuforums.org/showthread.php?t=2135204
  25. Replies
    19
    Views
    660

    Re: "Compile" script with command line

    How I can put my whole bash inside a 'string'? Cat is executing the script, I just want 'compile' it!
Results 1 to 25 of 46
Page 1 of 2 1 2