|
EDGESEC
0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
|
File containing the definition of the IP tables utilities. More...
Go to the source code of this file.
Data Structures | |
| struct | iptables_context |
| iptables context structure definition More... | |
Functions | |
| struct iptables_context * | iptables_init (const char *path, UT_array *ifinfo_array, bool exec_iptables) |
| Initialises the iptables rules list. More... | |
| void | iptables_free (struct iptables_context *ctx) |
| Free the iptables context. More... | |
| int | iptables_add_bridge (struct iptables_context *ctx, char *sip, char *sif, char *dip, char *dif) |
| Add a bridge rule to the list of rules. More... | |
| int | iptables_delete_bridge (struct iptables_context *ctx, const char *sip, const char *sif, const char *dip, const char *dif) |
| Delete a bridge rule. More... | |
| int | iptables_add_nat (struct iptables_context *ctx, char *sip, char *sif, char *nif) |
| Add a NAT rule. More... | |
| int | iptables_delete_nat (struct iptables_context *ctx, char *sip, char *sif, char *nif) |
| Delete a NAT rule. More... | |
File containing the definition of the IP tables utilities.
| int iptables_add_bridge | ( | struct iptables_context * | ctx, |
| char * | sip, | ||
| char * | sif, | ||
| char * | dip, | ||
| char * | dif | ||
| ) |
Add a bridge rule to the list of rules.
| ctx | The iptables context |
| sip | Source IP string |
| sif | Source interface name string |
| dip | Destination IP string |
| dif | Destination interface name string |
| int iptables_add_nat | ( | struct iptables_context * | ctx, |
| char * | sip, | ||
| char * | sif, | ||
| char * | nif | ||
| ) |
Add a NAT rule.
| ctx | The iptables context |
| sip | Source IP string |
| sif | Source interface name string |
| nif | NAT interface name string |
| int iptables_delete_bridge | ( | struct iptables_context * | ctx, |
| const char * | sip, | ||
| const char * | sif, | ||
| const char * | dip, | ||
| const char * | dif | ||
| ) |
Delete a bridge rule.
| ctx | The iptables context |
| sip | Source IP string |
| sif | Source interface name string |
| dip | Destination IP string |
| dif | Destination interface name string |
| int iptables_delete_nat | ( | struct iptables_context * | ctx, |
| char * | sip, | ||
| char * | sif, | ||
| char * | nif | ||
| ) |
Delete a NAT rule.
| ctx | The iptables context |
| sip | Source IP string |
| sif | Source interface name string |
| nif | NAT interface name string |
| void iptables_free | ( | struct iptables_context * | ctx | ) |
Free the iptables context.
| ctx | The iptables context |
| struct iptables_context* iptables_init | ( | const char * | path, |
| UT_array * | ifinfo_array, | ||
| bool | exec_iptables | ||
| ) |
Initialises the iptables rules list.
| path | The iptables binary path |
| ifinfo_array | Array of interface configuration info structure |
| exec_iptables | Execute the iptables command |