Jump to content

Recommended Posts

Posted

 

 

Advanced Policy Firewall (APF) is an iptables(netfilter) based firewall system designed around the essential needs of today’s Internet deployed servers and the unique needs of custom deployed Linux installations. The configuration of APF is designed to be very informative and present the user with an easy to follow process, from top to bottom of the configuration file. The management of APF on a day-to-day basis is conducted from the command line with the ‘apf’ command, which includes detailed usage information and all the features one would expect from a current and forward thinking firewall solution.

 

    APF is one of the best firewalls out there and is an important component in your server security. Every server should have a firewall installed !

 

    How to install APF

 

    Download the package and extract the files

    wget http://www.r-fx.ca/downloads/apf-current.tar.gz

    gzip -d apf-current.tar.gz

    tar -xf apf-current.tar

    cd apf-0.9.6-3/

 

    Do the actual install

    ./install.sh

 

    You will get something like

 

    Installing APF 0.9.6-3: Completed.

 

    Installation Details:

    Install path: /etc/apf/

    Config path: /etc/apf/conf.apf

    Executable path: /usr/local/sbin/apf

    AntiDos install path: /etc/apf/ad/

    AntiDos config path: /etc/apf/ad/conf.antidos

    DShield Client Parser: /etc/apf/extras/dshield/

 

    Other Details:

    Listening TCP ports: 1,21,22,25,53,80,110,111,143,443,465,993,995,2082,2083,2086,2087,2095,2096,3306

    Listening UDP ports: 53

    Note: These ports are not auto-configured; they are simply presented for information purposes. You must manually configure all port options.

 

    If you get a failure about the creation of /etc/init.d/apf, you can add the following string too the bottom of the

    /etc/rc.local file:

 

    sh -c "/etc/apf/apf -s" &

 

 

    You have to configure the firewall now

    vi /etc/apf/conf.apf

 

    I will only show you the basic configuration. APF is a very powerful firewall and you should read every setting carefully.

    We will limit inbound access ports. Locate in the /etc/apf/conf.apf the section “IG_TCP_CPORTS” and use the fallowing lines:

 

    # Common inbound (ingress) TCP ports

    IG_TCP_CPORTS="21,22,25,53,80,110,143,443,587,783,993,995,2812,9876,10024,12525,60000"

 

    # Common inbound (ingress) UDP ports

    IG_UDP_CPORTS="20,21,53"

 

    NOTE! This is what I use for most servers and should also work well with your server but I provide no guarantee! If you have a custom ssh port or you run a server on a different port you should add that to IG_TCP_CPORTS or to IG_UDP_CPORTS.

 

    Now it’s time to test the configuration. Do a apf restart:

    /etc/apf/apf -r

 

 

    Now test to see if everything is ok and that you can access all your services just fine.

    If everything is ok proceed to next step. You for some reason you get locked out just wait about 5 minutes as the firewall is set in test mode and will flash itself out after that period.

    Go back and check all the settings and then restart apf again.

 

    Finalize the install

    If everything is ok after the initial tests you have to set APF into “production” mode.

    Edit /etc/apf/conf.apf and change DEVEL_MODE=”1″ to DEVEL_MODE=”0″

    Go ahead and restart apf one last time:

 

    /etc/apf/apf -r

 

    For more information about apf configuration please feel free to consult http://rfxnetworks.com/appdocs/README.apf

    Please note that APF has a very nice log that you can check. For example you can tail the last 10 rows for this files

 

    tail -10 /var/log/apf_log

 

    If you what to deny IP 1.2.3.4 you have to run the command:

 

    apf -d 1.2.3.4 RESON

 

    Unbanning an IP can by done by running:

 

    apf -u 1.2.3.4

 

    Also banning and unbanning can be done by editing the file /etc/apf/deny_hosts.rules

 

    vi /etc/apf/deny_hosts.rules

 

    After you do any changes don’t forget to restart APF

 

    /etc/apf/apf -r

Posted

To be honest, it is a bit strange...Haven't seen something like this before..

 

yes but it work! if you want you can check it..

i dont know other way to protect server from ddos attacks..

mmocore is only for noobisherror but there are and some other programs around

Posted

np :) i hope i help... cuz i dont like when someone ddos smth that someone alse try hard to make it

 

most of the server which suffer ddos attack run with windows anyway :)

Posted

most of the server which suffer ddos attack run with windows anyway :)

 

if i learn a way for windows cause i need it too for my server be sure i will post it in all forums!

 

Posted

as i can see on your sing you are l2j developer.. maybe you know some ways to protect l2j server from ddos attacks windows

 

no hes just a wannabe credit stealer ignore him :)

 

BTW for the newbies you could maybe add the registering command part to the guide? :)

you know for the wget gzip tar :)

Posted

yes but this is not for newbies 1stly cause newbies server is fail and beter that hackers close them:) im joking.. and secondly they cant do this . to do ityou need some xp

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • ## [1.4.0] - 2026-01-28   ### ✨ New Features - **Vote System**: Lineage 2 servers can now use our vote–reward system. Players vote on the website and claim rewards in-game (1 vote = 1 claim) - **Vote Page**: On each server’s page (`/servers/<server>`), a **“Vote for Server”** button opens a dedicated vote page with cooldown info and optional Turnstile verification - **By Votes View**: The **“By Votes”** tab on the main page shows **actual vote counts** per server - **API Documentation**: New **API Docs** page at `/docs` (and footer link) with HMAC auth, endpoints, and examples for game server integration - **Vote API (My Servers)**: Server owners can open **“Vote API”** in My Servers to manage credentials, cooldown, allowed IPs, and open the docs   ### 🔄 Improvements - **Server Pages**: Single-server data is cached and loads faster; server pages can be opened by ID or by name (e.g. `/servers/my-server-name`) - **API Root**: Visiting the API root redirects to the docs URL configured in admin (default: site docs page) - **Admin Panel**: New **“Vote System”** tab for global settings (Turnstile, API security, default cooldown, docs URL)   ### 🔐 Security & Reliability - Turnstile (CAPTCHA) support for vote submissions to reduce abuse - HMAC-protected game server API for secure vote check/claim and stats
    • "I recently purchased the account panel from this developer and wanted to leave a positive review.   The transaction was smooth, and the developer demonstrated exceptional professionalism throughout the process.   What truly sets them apart is their outstanding post-sale support. They are responsive, patient, and genuinely helpful when addressing questions or issues. It's clear they care about their customers' experience beyond just the initial sale.   I am thoroughly satisfied and grateful for the service. This is a trustworthy seller who provides real value through both a quality product and reliable support. 100% recommended."
    • Server owners, Top.MaxCheaters.com is now live and accepting Lineage 2 server listings. There is no voting, no rankings manipulation, and no paid advantages. Visibility is clean and equal, and early listings naturally appear at the top while the platform grows. If your server is active, it should already be listed. Submit here https://Top.MaxCheaters.com This platform is part of the MaxCheaters.com network and is being built as a long-term reference point for the Lineage 2 community. — MaxCheaters.com Team
    • ⚙️ General Changed “No Carrier” title to “Disconnected” to avoid confusion after abnormal DC. On-screen Clan War kill notifications will no longer appear during Sieges, Epics, or Events. Bladedancer or SwordSinger classes can now log in even when Max Clients (2) is reached, you cannot have both at the same time. The max is 3 clients. Duels will now be aborted if a monster aggros players during a duel (retail-like behavior). Players can no longer send party requests to blocked players (retail-like). Fixed Researcher Euclie NPC dialogue HTML error. Changed Clan leave/kick penalty from 12 hours to 3 hours. 🧙 Skills Adjusted Decrease Atk. Spd. & Decrease Speed land rates in Varka & FoG. Fixed augmented weapons not getting cooldown when entering Olympiad. 🎉 Events New Team vs Team map added. New Save the King map added (old TvT map). Mounts disabled during Events. Letter Collector Event enabled Monsters drop letters until Feb. 13th Louie the Cat in Giran until Feb. 16th Inventory slots +10 during event period 📜 Quests Fixed “Possessor of a Precious Soul Part 1” rare stuck issue when exceeding max quest items. Fixed Seven Signs applying Strife buff/debuff every Monday until restart. 🏆 Milestones New milestone: “Defeat 700 Monsters in Varka” 🎁 Rewards: 200 Varka’s Mane + Daily Coin 🌍 NEW EXP Bonus Zones Hot Springs added Varka Silenos added (hidden spots excluded) As always, thank you for your support! L2Elixir keeps evolving, improving, and growing every day 💙   Website: https://l2elixir.org/ Discord: https://discord.gg/5ydPHvhbxs
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..