4-3 Flashcards

1
Q

to list the current iptables rules you use

A

iptables-L

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

to allow communication on a specific port. in this example using ssh port 22 you use

A

iptbles -A INPUT -p tcp –dport ssh -j ACCEPT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

or prehaps you need to allow all incoming web/HTTP traffic

A

iptables -A INPUT -p tcp –dport 80 -j ACCEPT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

logging dropped packets is also a good idea. the following command does that

A

iptables -I INPUT 5 -m limit –limit 5/min -j LOG –log prefix “iptables denied: “ –log-level 7

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

iptable flags / append this rule to the rule chain

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

iptable flags / lit the current filter rules

A

-L

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

iptable flags / the connection protocol used

A

-p

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

iptable flags / the destination port required for this rule. a single port may be given, or a range may be given as start:end

A

–dport

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

iptable flags / the maximum matchin rate, given as a number followed by “/second”, “/minute”, “/hour”, “/day” depending on how often you want the rule to match

A

–limit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

iptable flags / define the list of states for the rule to match on

A

–ctstate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

iptable flags / when logging, put this tect before the log message. use double quotes around the text use

A

–log-prefix

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

iptable flags / logusing the specified syslog level

A

–log-level

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

iptable flags / only match if the packet is coming in on the specifiedinterface

A

-i

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

iptable flags / verbose output

A

-v

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

iptable flags / source specification

A

-s

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

iptable flags / destnation specification

A

-d

17
Q

iptable flags / output name

A

-o