C
HAPTER
12:
C
OMMAND
L
INE
I
NTERFACE
145
-save
Save the IP Tables.
--state NEW
<enter rule to
trigger here>
-t filter
iptables Command Examples
Iptables can be configured in a plethora of ways that is outside the scope of this document. The
examples below show some simple configuration options created with iptables.
The following example enables a log for iptables:
admin > firewall > iptables -A input -t filter -j LOG
--log-prefix DOM_IPACL -m state --state NEW -s <IP>
Adding a default local rule
To add a default iptable rule for local access:
admin > Security >firewall >iptables -A INPUT -t filter -j ACCEPT
-s 127.0.0.1
Restricting Access from an IP Address
To restrict access to the SX from a specific IP address (192.168.1.100):
admin > Security >firewall >iptables -A INPUT -t filter -j DROP
-s 192.168.1.100
Logging a message when IP Address connects
To send a syslog message when an IP Address connects to the SX:
admin > Security >firewall >iptables -A INPUT -t filter -j LOG
--log-prefix DOM_IPACL -m state --state NEW -s 192.168.1.100
Allowing Access from an IP Range
To allow access to the SX from a specific IP range (192.168.0.1-192.168.0.255).
admin > Security >firewall >
i
ptables -A INPUT -t filter
-j ACCEPT -s 192.168.0.0/255.255.255.0
Disable all ICMP traffic
To disable ICMP protocol traffic, and have the SX not respond to pings.
admin > Security >firewall >iptables -A INPUT -p icmp -j DROP
Prevent Access to the Telnet port from an IP Address
To disable acccess to the telnet port for a particular ip address
admin > Security >firewall >
i
ptables -A INPUT -p tcp --dport 23
-j DROP -s 192.168.0.100
View the current iptables
To view the current iptables ruleset
admin > Security >firewall >iptables –list
Summary of Contents for DOMINION SX -
Page 2: ...This page intentionally left blank...
Page 18: ...This page intentionally left blank...
Page 22: ...4 DOMINION SX USER GUIDE This page intentionally left blank...
Page 44: ...26 DOMINION SX USER GUIDE...
Page 48: ...30 DOMINION SX USER GUIDE...
Page 83: ...CHAPTER 8 SECURITY 65 Figure 59 SSL Client Certificate Screen...
Page 104: ...86 DOMINION SX USER GUIDE...
Page 170: ...152 DOMINION SX USER GUIDE...
Page 174: ...156 DOMINION SX USER GUIDE...
Page 196: ...178 DOMINION SX USER GUIDE Install the Dominion SX Server Certificate section that follows...
Page 203: ...APPENDIX C CERTIFICATES 185...
Page 204: ...186 DOMINION SX USER GUIDE...
Page 212: ...194 DOMINION SX USER GUIDE...
Page 225: ...APPENDIX F TROUBLESHOOTING 207 255 60 2000 00...