Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc/init.d/nftables ???
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Tender
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2005
Posts: 138

PostPosted: Wed Sep 23, 2015 6:56 pm    Post subject: /etc/init.d/nftables ??? Reply with quote

Hello, just studying nftables...

Code:


lowpower2 ~ # eix nftables
[I] net-firewall/nftables
     Available versions:  (~)0.4 (~)0.5 {debug gmp +readline}
     Installed versions:  0.5(12:17:28 PM 09/22/2015)(gmp readline -debug)
     Homepage:            http://netfilter.org/projects/nftables/
     Description:         Linux kernel (3.13+) firewall, NAT and packet mangling tools


lowpower2 ~ # nft list tables ip 

lowpower2 ~ # nft add table ip filter     

lowpower2 ~ # nft list tables ip
table ip filter

lowpower2 ~ # /etc/init.d/nftables list
<cmdline>:1:15-16: Error: syntax error, unexpected ip, expecting string
list table ip ip filter
              ^^

<cmdline>:1:16-17: Error: syntax error, unexpected ip, expecting string
list table arp ip filter
               ^^

<cmdline>:1:16-17: Error: syntax error, unexpected ip, expecting string
list table ip6 ip filter
               ^^

<cmdline>:1:19-20: Error: syntax error, unexpected ip, expecting string
list table bridge ip filter
                  ^^

<cmdline>:1:17-18: Error: syntax error, unexpected ip, expecting string
list table inet ip filter
                ^^

lowpower2 ~ # /etc/init.d/nftables save
 * Saving nftables state ...
<cmdline>:1:15-16: Error: syntax error, unexpected ip, expecting string
list table ip ip filter
              ^^
<cmdline>:1:16-17: Error: syntax error, unexpected ip, expecting string
list table arp ip filter
               ^^
<cmdline>:1:16-17: Error: syntax error, unexpected ip, expecting string
list table ip6 ip filter
               ^^
<cmdline>:1:19-20: Error: syntax error, unexpected ip, expecting string
list table bridge ip filter
                  ^^
<cmdline>:1:17-18: Error: syntax error, unexpected ip, expecting string
list table inet ip filter
                ^^

lowpower2 ~ # /etc/init.d/nftables clear
<cmdline>:1:16-17: Error: syntax error, unexpected ip, expecting string
flush table ip ip filter
               ^^
<cmdline>:1:15-16: Error: syntax error, unexpected ip, expecting string
list table ip ip filter
              ^^
<cmdline>:1:17-18: Error: syntax error, unexpected ip, expecting string
delete table ip ip filter
                ^^
<cmdline>:1:17-18: Error: syntax error, unexpected ip, expecting string
flush table arp ip filter
                ^^
<cmdline>:1:16-17: Error: syntax error, unexpected ip, expecting string
list table arp ip filter
               ^^
<cmdline>:1:18-19: Error: syntax error, unexpected ip, expecting string
delete table arp ip filter
                 ^^
<cmdline>:1:17-18: Error: syntax error, unexpected ip, expecting string
flush table ip6 ip filter
                ^^
<cmdline>:1:16-17: Error: syntax error, unexpected ip, expecting string
list table ip6 ip filter
               ^^
<cmdline>:1:18-19: Error: syntax error, unexpected ip, expecting string
delete table ip6 ip filter
                 ^^
<cmdline>:1:20-21: Error: syntax error, unexpected ip, expecting string
flush table bridge ip filter
                   ^^
<cmdline>:1:19-20: Error: syntax error, unexpected ip, expecting string
list table bridge ip filter
                  ^^
<cmdline>:1:21-22: Error: syntax error, unexpected ip, expecting string
delete table bridge ip filter
                    ^^
<cmdline>:1:18-19: Error: syntax error, unexpected ip, expecting string
flush table inet ip filter
                 ^^
<cmdline>:1:17-18: Error: syntax error, unexpected ip, expecting string
list table inet ip filter
                ^^
<cmdline>:1:19-20: Error: syntax error, unexpected ip, expecting string
delete table inet ip filter
                  ^^


lowpower2 ~ # /etc/init.d/nftables start
 * Loading nftables state and starting firewall ...
<cmdline>:1:16-17: Error: syntax error, unexpected ip, expecting string
flush table ip ip filter
               ^^
<cmdline>:1:15-16: Error: syntax error, unexpected ip, expecting string
list table ip ip filter
              ^^
<cmdline>:1:17-18: Error: syntax error, unexpected ip, expecting string
delete table ip ip filter
                ^^
<cmdline>:1:17-18: Error: syntax error, unexpected ip, expecting string
flush table arp ip filter
                ^^
<cmdline>:1:16-17: Error: syntax error, unexpected ip, expecting string
list table arp ip filter
               ^^
<cmdline>:1:18-19: Error: syntax error, unexpected ip, expecting string
delete table arp ip filter
                 ^^
<cmdline>:1:17-18: Error: syntax error, unexpected ip, expecting string
flush table ip6 ip filter
                ^^
<cmdline>:1:16-17: Error: syntax error, unexpected ip, expecting string
list table ip6 ip filter
               ^^
<cmdline>:1:18-19: Error: syntax error, unexpected ip, expecting string
delete table ip6 ip filter
                 ^^
<cmdline>:1:20-21: Error: syntax error, unexpected ip, expecting string
flush table bridge ip filter
                   ^^
<cmdline>:1:19-20: Error: syntax error, unexpected ip, expecting string
list table bridge ip filter
                  ^^
<cmdline>:1:21-22: Error: syntax error, unexpected ip, expecting string
delete table bridge ip filter
                    ^^
<cmdline>:1:18-19: Error: syntax error, unexpected ip, expecting string
flush table inet ip filter
                 ^^
<cmdline>:1:17-18: Error: syntax error, unexpected ip, expecting string
list table inet ip filter
                ^^
<cmdline>:1:19-20: Error: syntax error, unexpected ip, expecting string
delete table inet ip filter
                  ^^                                                         


???


Last edited by Tender on Thu Sep 24, 2015 7:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2583

PostPosted: Thu Sep 24, 2015 5:48 am    Post subject: Re: /etc/init.d/nftables ??? Reply with quote

Tender wrote:
lowpower2 ~ # /etc/init.d/nftables list

That init.d stuff isn't even mentioned in the wiki . Where did you find it?
Back to top
View user's profile Send private message
Tender
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2005
Posts: 138

PostPosted: Thu Sep 24, 2015 7:41 am    Post subject: Reply with quote

I think I get it emerging nftables...

lowpower2 ~ # equery f nftables |grep nftables
/etc/conf.d/nftables
/etc/init.d/nftables
/etc/nftables
/etc/nftables/bridge-filter
/etc/nftables/inet-filter
/etc/nftables/ipv4-filter
/etc/nftables/ipv4-mangle
/etc/nftables/ipv4-nat
/etc/nftables/ipv6-filter
/etc/nftables/ipv6-mangle
/etc/nftables/ipv6-nat
/usr/share/doc/nftables-0.5
/usr/share/doc/nftables-0.5/TODO.bz2
/var/lib/nftables
/var/lib/nftables/.keep_net-firewall_nftables-0

The wiki mentions rc-update add nftables default, that is, /etc/init.d/nftables start at boot...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum