Help Me In Ports Please
Hello everybody how are you .
I am trying to make very simple firewall with one rule
which is blocking packet that coming from specific port ( such as 80)
and I am beginner in C++ and don`t know much about my work .
I found many codes but it is complicated I want just to block traffic on
Could you help me please .
> and I am beginner in C++ and don`t know much about my work .
Why do people think they can go from "hello world" to "write a simple firewall" in one easy step?
Now you can write a simple server to listen on port 80 and just send back a disconnect for every connection.
But an actual firewall would work at a much lower level (and be a lot harder to achieve), and be far more specific to your OS/Compiler.
thanks Mr Salem to your help but I saw these websites before I registered here and I want something more simple . Just I want to tell you that I want this simple firewall to add it to my program which is completely sniffer and spoof packets and I said I am beginner it is because there are not anyone professional in any thing and it is kind of humility because maybe you are professional and you can not resolve some problems but beginners do thank you again and sorry but your answer forced me to response you. thank you all .
I've been programming in C and C++ for ten years on Windows, and even I couldn't tell you how to make a firewall.
To put it plainly, it is far above what you as a beginner should even consider looking into.
> I saw these websites before I registered here and I want something more simple .
Beej's tutorials are as simple as network programming gets. If you can't deal with that yet, you're stuck.
> to add it to my program which is completely sniffer and spoof packets
What exactly does this mean?
Why do I get the feeling you've just "found" some hack code on the web and you want to make it do something else without actually understanding anything at all.
Certainly, if you didn't understand Beej, then you didn't write the rest of your "spoof" code either.