This project demonstrates a simple Software Defined Networking (SDN) based access control system using Mininet and POX. The controller checks whether a host is authorized before allowing communication in the network.
A whitelist policy is used:
- Authorized hosts are allowed to communicate.
- Unauthorized hosts are blocked.
- Linux Mint / Ubuntu-based Linux
- Mininet
- Open vSwitch
- POX Controller
- Python
The network contains:
- 1 Switch:
s1 - 3 Hosts:
h1-> 10.0.0.1h2-> 10.0.0.2h3-> 10.0.0.3
Current authorized hosts:
10.0.0.1
10.0.0.2
This means:
h1andh2are allowed.h3is blocked.
Open Terminal 1:
cd ~/pox
python3 pox.py openflow.of_01 misc.access_controlOpen Terminal 2:
sudo mn -c
cd ~/sdn-access-control
sudo mn --custom topology.py --topo mytopo --controller=remote,ip=127.0.0.1,port=6633Inside the Mininet CLI:
h1 ping -c 2 h2Expected result: Successful communication.
h3 ping -c 2 h2Expected result: Request blocked / packet loss.
- Mininet creates the virtual network topology.
- The switch connects to the POX controller.
- The controller inspects incoming traffic.
- Source IP addresses are checked against the whitelist.
- Allowed hosts can communicate, unauthorized hosts are denied.
- Campus networks
- Enterprise access control
- Dynamic whitelist updates
- GUI for policy management
This project shows how SDN can be used to centrally manage network access policies in a simple and flexible way.