Modifying one line in Iptables
- by Rene Brakus
How would one modify the following line in iptables file (debian)?
ACCEPT all -- XXX.XXX.XX.X anywhere PHYSDEV match --physdev-in vif3.1
TO
ACCEPT all -- YYY.YYY.YY.Y anywhere PHYSDEV match --physdev-in vif3.1
I looked up the https://wiki.debian.org/iptables
and I'm having hard time figuring out how to exactly do this modification.
Can it be done using one command, or there is a way to temporally "extract" the iptables file and modify it using nano or vi, and put it back in place?