Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Build a firewall using VB.net and then open traffic after web-based sign-in

Build a firewall using VB.net and then open traffic after web-based sign-in

Scheduled Pinned Locked Moved Visual Basic
sysadminhelpcsharpdotnet
3 Posts 3 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    GDMFSOB
    wrote on last edited by
    #1

    Hi Everybody, bit of a strange one here, I am not very good with networing tools in .net but are looking at building a firewall i can write and then install on a windows xp/server, i want to setup internet connection sharing on that box with dhcp or my own dhcp server and then issue ip addresses to other machines on the network, any one of the client computers will then try and access the intenet or email, it must then ask them for a username and password i have setup in an admin portals somewhere, it must then log all the bandwidth used by that user and then when they leave i can view a total bandwidth used report for that user on all ports. If anybody know what assemblies in the .net framework wil help let me know otherwise any other suggestions will be greatly appreciated I think somekind of a dns interseptor would work but dont know how to handle traffic routing in .net.

    L D 2 Replies Last reply
    0
    • G GDMFSOB

      Hi Everybody, bit of a strange one here, I am not very good with networing tools in .net but are looking at building a firewall i can write and then install on a windows xp/server, i want to setup internet connection sharing on that box with dhcp or my own dhcp server and then issue ip addresses to other machines on the network, any one of the client computers will then try and access the intenet or email, it must then ask them for a username and password i have setup in an admin portals somewhere, it must then log all the bandwidth used by that user and then when they leave i can view a total bandwidth used report for that user on all ports. If anybody know what assemblies in the .net framework wil help let me know otherwise any other suggestions will be greatly appreciated I think somekind of a dns interseptor would work but dont know how to handle traffic routing in .net.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      This is the level of what you are trying to do this is your project ______________ this is your head :) Clearly, you are in way over your head.

      modified on Thursday, February 5, 2009 1:47 PM

      1 Reply Last reply
      0
      • G GDMFSOB

        Hi Everybody, bit of a strange one here, I am not very good with networing tools in .net but are looking at building a firewall i can write and then install on a windows xp/server, i want to setup internet connection sharing on that box with dhcp or my own dhcp server and then issue ip addresses to other machines on the network, any one of the client computers will then try and access the intenet or email, it must then ask them for a username and password i have setup in an admin portals somewhere, it must then log all the bandwidth used by that user and then when they leave i can view a total bandwidth used report for that user on all ports. If anybody know what assemblies in the .net framework wil help let me know otherwise any other suggestions will be greatly appreciated I think somekind of a dns interseptor would work but dont know how to handle traffic routing in .net.

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        What you're describing is a proxy server, not a firewall. There are various proxy protocols you have to implement in your server, plus a rather deep knowledge of TCP/IP and Sockets would be required to pull this off. Forget the Internet Connection SHaring and DHCP Server stuff. They have nothing to do with the ultimate goal of the project (as you described it anyway). Leave the DHCP stuff to an off-the-shelf implementation. One even comes with Windows Server. The .NET classes are pretty much all going to be under System.Net. What you use depends on the design of your server. Warning: This project is going to require advanced skills in networking and socket communications.

        GDMFSOB wrote:

        I think somekind of a dns interseptor would work but dont know how to handle traffic routing in .net.

        Nope. This requires that you configure any software that's going to use the outside network to go through your proxy server. There is no "intercepting" anything to get this to work. Clients can very easily try to connect to outside networks and systems without using DNS at all, so intercepting DNS requests does you no good.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups