Posts by newtolinux

    you would add say a port forward on port 12000 ( if thats what port your using for cc ) to the local ip of your cc server . So if your cc server is on local ip of say 192.168.1.10 then you would port forward to there.


    Didn't you say though on a previous post that when a peer put your isp IP direct instead of hostname then it worked ?

    authric


    we neither condone or promote payservers. They are ruining the hobby for all of us. If you have come to this site wanting to find private subscriptions then you are sorely mistaken. This site is purely educational . If you find people willing to take a subscription charge from you please report back to one of the mods on this site


    thx


    t

    no mate , if 12000 is your port you would log in to your router and add a port forward/firewall rule from the options somewhere.


    you would tell the router for instance to redirect all port 12000 traffic to the local ip of your server.


    the dnsupdater doesnt do any port forwarding for you it simply maps and tracks your ip with your host name.


    If you still having grief maybe an idea to become a vip on this site and get some special help !!


    t

    log ot box with telnet as root . issue command as root "top" . That will show you all running processes. Look for rqcamd.


    thx


    t

    If you have unwanted users on your cccam server. Some users can cause cccam to crash.


    If you have /tmp/warnings.txt file you can see users that are trying to log in to your server without your permission.


    There are two solutions:


    1. Block IP directly in your router. If you have router where you can use Tomato firmware, find this section ?> Administration/Scripts/Firewall. Then add this line:
    iptables -I FORWARD -d IP of user that is attacking you -j DROP


    This only works if user has static IP. If user doesnt have static IP there is another solution. BUT you need to be using Linux PC as cccam server. The Solution is called Fail2Ban!


    If you have Fedora linux install Fail2Ban with this command: yum install fail2ban
    If you have Ubuntu/Debian use: apt-get install fail2ban


    Next command is (use telnet):
    nano /etc/fail2ban/jail.conf


    You need to look for this lines:


    # ?ignoreip? can be an IP address, a CIDR mask or a DNS host
    ignoreip = 127.0.0.1 192.168.1.72 ?> here you need to put addresses that will be ignored by fail2ban!
    maxretry = 3


    [cccam-12000]


    enabled = true
    port = 12000 ?> port of your cccam server. I have 12333 for example.
    filter = cccam
    action = iptables[name=CCcam0, port=12000, protocol=tcp] ?> here you only need to change port to 12333 for example.
    logpath = /tmp/warnings.txt
    maxretry = 10
    bantime = 6000 ?-> this is in seconds. User will be banned 6000 seconds.


    Next command (use telnet):
    nano /etc/fail2ban/filter.d/cccam.conf


    Add this into cccam.conf file:


    # Fail2Ban configuration file
    #
    # Author: Cyril Jaquier
    #
    # $Revision: 510 $
    #


    [Definition]


    # Option: failregex
    # Notes.: regex to match the password failures messages in the logfile. The
    # host must be matched by a group named ?host?. The tag ?? can
    # be used for standard IP/hostname matching and is only an alias for
    # (?:::f{4,6}:)?(?P\S+)
    # Values: TEXT
    #
    failregex = Connection from IP: Login Failed!


    # Option: ignoreregex
    # Notes.: regex to ignore. If this regex matches, the line is ignored.
    # Values: TEXT
    #
    ignoreregex =


    Next command is:
    /etc/init.d/fail2ban restart


    Last command is:
    chkconfig ?levels 235 fail2ban on


    With this command fail2ban will start automatically.


    Now all cccam crash problems should be gone by them dodgy users trying to log into your server


    Thanks to a friend for this


    t