Now I am following you. FYI [root at ns1 network-scripts]# systemctl start firewalld [root at ns1 network-scripts]# systemctl status firewalld firewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled) Active: inactive (dead) since Wed 2015-11-25 17:20:14 SGT; 24s ago Process: 2865 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS (code=exited, status=0/SUCCESS) Main PID: 2865 (code=exited, status=0/SUCCESS) Nov 25 17:20:14 ns1.currencybooking.com systemd[1]: Starting firewalld - dynamic firewall daemon... Nov 25 17:20:14 ns1.currencybooking.com systemd[1]: Started firewalld - dynamic firewall daemon. Nov 25 17:20:14 ns1.currencybooking.com firewalld[2865]: 2015-11-25 17:20:14 ERROR: ebtables not usable, disabling ethernet bridge firewall. Nov 25 17:20:14 ns1.currencybooking.com firewalld[2865]: 2015-11-25 17:20:14 FATAL ERROR: No IPv4 and IPv6 firewall. Nov 25 17:20:14 ns1.currencybooking.com firewalld[2865]: 2015-11-25 17:20:14 ERROR: Raising SystemExit in run_server Shiva Prasad Nath 92981134 On Wed, Nov 25, 2015 at 3:07 PM, John R Pierce <pierce at hogranch.com> wrote:> On 11/24/2015 10:18 PM, Siva Prasad Nath wrote: > >> If possible advice me for below error. >> >> [root at ns1 sysconfig]# iptables-restore < /etc/sysconfig/iptables >> iptables-restore: line 2 failed >> >> Thanks in advance. >> > > If I recall correctly, you are using CentOS 7? With 7, you really should > be using firewalld rather than manually writing iptables rules. see the > firewall section of the RHEL 7 networking manual I previously linked, twice. > > otherwise, which part of that error is unclear? check line 2 of > /etc/sysconfig/iptables, it has a syntax error. there may be more > information in the system logs, see chapter 20, 'logging' > https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/ch-Viewing_and_Managing_Log_Files.html > > > -- > john r pierce, recycling bits in santa cruz > > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 25/11/15 10:29, Siva Prasad Nath wrote:> Now I am following you. > > FYI > > [root at ns1 network-scripts]# systemctl start firewalld [root at ns1 > network-scripts]# systemctl status firewalld firewalld.service - > firewalld - dynamic firewall daemon Loaded: loaded > (/usr/lib/systemd/system/firewalld.service; enabled) Active: > inactive (dead) since Wed 2015-11-25 17:20:14 SGT; 24s ago Process: > 2865 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS > (code=exited, status=0/SUCCESS) Main PID: 2865 (code=exited, > status=0/SUCCESS) > > Nov 25 17:20:14 ns1.currencybooking.com systemd[1]: Starting > firewalld - dynamic firewall daemon... Nov 25 17:20:14 > ns1.currencybooking.com systemd[1]: Started firewalld - dynamic > firewall daemon. Nov 25 17:20:14 ns1.currencybooking.com > firewalld[2865]: 2015-11-25 17:20:14 ERROR: ebtables not usable, > disabling ethernet bridge firewall. Nov 25 17:20:14 > ns1.currencybooking.com firewalld[2865]: 2015-11-25 17:20:14 FATAL > ERROR: No IPv4 and IPv6 firewall. Nov 25 17:20:14 > ns1.currencybooking.com firewalld[2865]: 2015-11-25 17:20:14 ERROR: > Raising SystemExit in run_serverAre you sure that you're running CentOS 7 and not some kind of VPS (using a shared kernel, and on which you can't modify iptables rules) ? What about "modinfo ip_tables ; uname -a " ? Cheers, - -- Fabian Arrotin The CentOS Project | http://www.centos.org gpg key: 56BEC54E | twitter: @arrfab -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlZWHhUACgkQnVkHo1a+xU5mCwCfS8VqhpH6hb8GPFotAYptQPhB 1nYAnjMoqsbQlF8ObmMXudtddza5X6Du =oOB7 -----END PGP SIGNATURE-----
modinfo: ERROR: Module alias ip_tables not found. Linux ns1.currencybooking.com 3.10.0-229.20.1.el7.x86_64 #1 SMP Tue Nov 3 19:10:07 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux Shiva Prasad Nath 92981134 On Thu, Nov 26, 2015 at 4:46 AM, Fabian Arrotin <arrfab at centos.org> wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 25/11/15 10:29, Siva Prasad Nath wrote: > > Now I am following you. > > > > FYI > > > > [root at ns1 network-scripts]# systemctl start firewalld [root at ns1 > > network-scripts]# systemctl status firewalld firewalld.service - > > firewalld - dynamic firewall daemon Loaded: loaded > > (/usr/lib/systemd/system/firewalld.service; enabled) Active: > > inactive (dead) since Wed 2015-11-25 17:20:14 SGT; 24s ago Process: > > 2865 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS > > (code=exited, status=0/SUCCESS) Main PID: 2865 (code=exited, > > status=0/SUCCESS) > > > > Nov 25 17:20:14 ns1.currencybooking.com systemd[1]: Starting > > firewalld - dynamic firewall daemon... Nov 25 17:20:14 > > ns1.currencybooking.com systemd[1]: Started firewalld - dynamic > > firewall daemon. Nov 25 17:20:14 ns1.currencybooking.com > > firewalld[2865]: 2015-11-25 17:20:14 ERROR: ebtables not usable, > > disabling ethernet bridge firewall. Nov 25 17:20:14 > > ns1.currencybooking.com firewalld[2865]: 2015-11-25 17:20:14 FATAL > > ERROR: No IPv4 and IPv6 firewall. Nov 25 17:20:14 > > ns1.currencybooking.com firewalld[2865]: 2015-11-25 17:20:14 ERROR: > > Raising SystemExit in run_server > > Are you sure that you're running CentOS 7 and not some kind of VPS > (using a shared kernel, and on which you can't modify iptables rules) ? > What about "modinfo ip_tables ; uname -a " ? > > Cheers, > > - -- > Fabian Arrotin > The CentOS Project | http://www.centos.org > gpg key: 56BEC54E | twitter: @arrfab > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.22 (GNU/Linux) > > iEYEARECAAYFAlZWHhUACgkQnVkHo1a+xU5mCwCfS8VqhpH6hb8GPFotAYptQPhB > 1nYAnjMoqsbQlF8ObmMXudtddza5X6Du > =oOB7 > -----END PGP SIGNATURE----- > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >