Skip to content

Manage Linux Iptables Firewall rule programatically using LIBIPTC library

Notifications You must be signed in to change notification settings

SHAHIDNX/Libiptc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Libiptc

Manage Linux Iptables Firewall rule programatically using LIBIPTC library

This application demonstrate adding iptables rule programatically using iptc library. Compilation: gcc -o iptc_add_delete_rule iptc_add_delete_rule.c -lip4tc

Run: To Add a rule: ./iptc_add_delete_rule 1

To Delete a Rule: ./iptc_add_delete_rule 2

Above sample apllication ADD or DELETE UDP port 8000 on INPUT chain with destination IP 10.201.0.238. Request to modify IP accordingly as this sample is just for reference.

About

Manage Linux Iptables Firewall rule programatically using LIBIPTC library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages