Skip to content

blackXmask/SecureNetX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🔐 SecureNetX Firewall Manager

SecureNetX is a modern, JavaFX-based Linux firewall manager that provides a user-friendly GUI to control iptables rules, block/unblock IPs, and monitor real-time network services.
Ideal for cybersecurity learners, system administrators, or anyone who wants a graphical way to control Linux firewalls.

prove
view01
view02


✨ Features

  • 📡 Service Scanner
    Lists all currently active TCP/UDP services with IP, port, and process name using ss -tulnp.

  • 🔥 Firewall Rule Management

    • Add or remove rules using protocol, IP address, port, and action (ACCEPT / DROP).
    • Logs feedback and errors in real time.
    • Extensible to support INPUT / OUTPUT direction (currently INPUT by default).
  • 🚫 Block/Unblock IPs
    Block or unblock any external IP using iptables -A OUTPUT -d IP -j DROP (and delete to unblock).

  • 📋 Live Logging
    Real-time visual log inside the application, showing rule actions, scanned services, IP blocks, and more.

  • Exit Button
    Gracefully close the application with one click.


🧪 Testing Example: Block Facebook

A great way to test the app is by blocking a known public IP like Facebook.

🔎 Steps:

  1. Use nslookup or ping to find Facebook’s public IP:

    nslookup facebook.com
    

Example IP: 157.240.1.35

Enter 157.240.1.35 into the “Block IP” field in the app and click Block IP.

Test the block:

ping 157.240.1.35         # Should fail
curl https://facebook.com # May time out

Click Unblock IP to reverse it.

⚠️ Note: Facebook uses many dynamic IPs and CDNs. Blocking one IP may not fully block the website.

🧰 Requirements

Java 17+

JavaFX SDK (e.g., javafx-sdk-21)

Linux OS with:

    iptables

    ss command

Run with sudo/root to allow iptables modifications

🚀 Getting Started

  1. Clone the Repository

git clone https://github.com/blackXmask/SecureNetX.git cd SecureNetX-Firewall

  1. Compile & Run (Manual)

javac --module-path /path/to/javafx/lib --add-modules javafx.controls,javafx.fxml application/*.java sudo java --module-path /path/to/javafx/lib --add-modules javafx.controls,javafx.fxml application.Main

🛑 Important: Always run with sudo so the application can apply firewall rules.
  1. Open in IDE

    Open the project in Eclipse / IntelliJ.

    Set VM Options to include JavaFX:

    --module-path /path/to/javafx/lib --add-modules javafx.controls,javafx.fxml

⚠️ Disclaimer

This tool uses and modifies iptables firewall rules. Misuse may result in loss of network access. Use responsibly and preferably in a controlled/test environment before applying to production systems.

📄 License

MIT License © 2025 blackXmask Feel free to modify, contribute, or share under the terms of the license.

Let me know if you'd like:

  • .jar build instructions
  • .deb package guide for Debian-based systems
  • or README in another language (e.g., Urdu, Spanish)

About

SecureNetX is a modern, JavaFX-based Linux firewall manager that provides a user-friendly GUI to control `iptables` rules, block/unblock IPs, and monitor real-time network services. Ideal for cybersecurity learners, system administrators, or anyone who wants a graphical way to control Linux firewalls.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors