Modifying one line in Iptables
Posted
by
Rene Brakus
on Server Fault
See other posts from Server Fault
or by Rene Brakus
Published on 2013-11-07T07:55:20Z
Indexed on
2013/11/07
9:57 UTC
Read the original article
Hit count: 192
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?
© Server Fault or respective owner