Hot Downloads

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Built a firewall from scratch

Built a firewall from scratch 12 years 4 weeks ago #14795

  • Pon
  • Pon's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
Hello everyone,
i have to built a firewall from scratch but i dont know how to start, any usefull suggestion will be appriceated.

The project i have is to built a firewall from scratch with user interface, i m thinking something in linux with iptables, a web interface for user, but can a user change iptables rules from a web interface connecting with a cgi script, should i make the user interface with c ?

is it possible to built a firewall in that way? if anyone have something to suggest plz post it here or pm me

thanks a lot :)

Please Log in to join the conversation.

Re: Built a firewall from scratch 12 years 4 weeks ago #14799

Hello pon
I'm assuming you've got to do this as an assignment or a project. In that case I would first define the scope of the project carefully. Modern commercial firewalls offer quite a range of advanced features and helps that you can't hope to replicate for an assignment. So define your scope - a basic firewall needs to have two interfaces that the operating system can route between, then on top of that it needs to have some sort of rule-based enforcement engine that will permit or deny packets according to the rules. Given that, your task becomes manageable.
I'd say that iptables is probably the way to go. Get the basics working first in their raw form then figure out a way to build a user interface to manipulate them. There's a lot of documentation on iptables on the internet and you'll find several experts here on Firewall.cx if you have problems. Let us know how you get on.

Please Log in to join the conversation.

Re: Built a firewall from scratch 12 years 4 weeks ago #14809

  • Pon
  • Pon's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
thanks for the fast reply man :)

so its time to start reading iptables....

Please Log in to join the conversation.

Re: Built a firewall from scratch 12 years 4 weeks ago #14814

  • DaLight
  • DaLight's Avatar
  • Offline
  • Honored Member
  • Honored Member
  • Posts: 1302
  • Karma: 1
  • Thank you received: 0
To add to the Bishop's advice, after gaining proficiency in iptables and sorting out the basis of your firewall, your user interface can definitely be constructed using cgi scripts. A number of popular iptables-based firewall distributions use this method. IPCOP for example uses perl for the web interface, which obviously makes development easier and faster.

Please Log in to join the conversation.

Re: Built a firewall from scratch 12 years 3 weeks ago #14847

  • Pon
  • Pon's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
thanks a lot mate, i wasnt sure if i could use a web interface and cgi scripts to connect ip table rules with the interface...

now i have i clear view of my subject, all i have to do is to create my rules with iptables, then built a web interface and connecting with iptables with cgi scripts

thanks a lot both again :)

Please Log in to join the conversation.

  • Page:
  • 1
Time to create page: 0.143 seconds

CCENT/CCNA

Cisco Routers

  • SSL WebVPN
  • Securing Routers
  • Policy Based Routing
  • Router on-a-Stick

VPN Security

  • Understand DMVPN
  • GRE/IPSec Configuration
  • Site-to-Site IPSec VPN
  • IPSec Modes

Cisco Help

  • VPN Client Windows 8
  • VPN Client Windows 7
  • CCP Display Problem
  • Cisco Support App.

Windows 2012

  • New Features
  • Licensing
  • Hyper-V / VDI
  • Install Hyper-V

Linux

  • File Permissions
  • Webmin
  • Groups - Users
  • Samba Setup