본문 바로가기
Linux

Linux - Disable IPv6

by 올엠 2021. 1. 20.
반응형

If you want to disable IPv6 in linux, You just follow below step.

 

# vi /etc/sysctl.conf

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

 

# vi /etc/postfix/main.cf

inet_protocols = ipv4

 

#sudo sysctl -p /etc/sysctl.conf

#postfix reload

 

When you see this message “postfix/pickup[xxxxx]: fatal: parameter inet_interfaces: no local interface found for ::1”

vi /etc/hosts then remove to ::1″ Line and  restart postifx

 

반응형