I'm reading through the source code that writes directly to system iptables
in /system/xbin/iptables
in Android. I would like to do the same in Ubuntu without using the iptables
command.
Where is iptables
located on Ubuntu 16.04? I followed some questions and answers which don't apply on this version of Ubuntu.
find / -name iptables
return /sbin/iptables
which contains binary and maybe man!
Where is the file that the iptables
command writes its configuration?
/system/xbin/iptables
is a binary. I think the kernel stores the iptables in RAM as opposed to a place on the drive?