Is there a way to block all outgoing connections from redhat 7 using
iptables except for one IP.
It will make connections to specific IP while drop all connections to the rest.
I know this command to drop all connections but couldn't figure out how to allow external connections to only one IP
iptables -I OUTPUT -o eth1 -j DROP