shorewall-arprules(5)
arprules – Shorewall ARP rules file
Synopsis
/etc/shorewall/arprules
Description
ACTION- Describes the action to take when a frame matches the criteria in the other columns. Possible values are:
ACCEPT - This is the default action if no rules matches a frame; it lets the frame go through.
- Causes the frame to be dropped.
- Modifies the source IP address to the specified ip-address.
- Modifies the destination IP address to the specified ip-address.
- Modifies the source MAC address to the specified mac-address.
- Modifies the destination MAC address to the specified mac-address.
- Like SNAT except that the frame is then passed to the next rule.
- Like DNAT except that the frame is then passed to the next rule.
- Like SMAT except that the frame is then passed to the next rule.
- Like DMAT except that the frame is then passed to the next rule.
DROP
SNAT:ip-address
DNAT:ip-address
SMAT:mac-address
DMAT:mac-address
SNATC:ip-address
DNATC:ip-address
SMATC:mac-address
DMATC:mac-address
SOURCE – [interface[:[!]ipaddress[/ipmask][:[!]macaddress[/macmask]]]]
- Where interface
- Is an interface defined in shorewall-interfaces(5).
- is an IPv4 address. DNS names are not allowed.
- specifies a mask to be applied to ipaddress.
- The source MAC address.
- Mask for MAC address; must be specified as 6 hexadecimal numbers separated by colons.
Caution
Either SOURCE or DEST must be specified.DEST–[interface[:[!]ipaddress[/ipmask][:[!]macaddress[/macmask]]]]- Where interface
- Is an interface defined in shorewall-interfaces(5).
- is an IPv4 address. DNS Names are not allowed.
- specifies a mask to be applied to frame addresses.
- The destination MAC address.
- Mask for MAC address; must be specified as 6 hexadecimal numbers separated by colons.
Caution
Either SOURCE or DEST must be specified. OPCODE – [[!]opcode]- Optional. Describes the type of frame. Possible opcode values are: 1
- ARP Request
- ARP Reply
- RARP Request
- RARP Reply
- Dynamic RARP Request
- Dynamic RARP Reply
- Dynamic RARP Error
- InARP Request
- ARP NAK
#ACTION SOURCE DEST ARP OPCODE SNAT:10.1.10.11 - eth1:10.1.10.0/24 1
ipaddress
ipmask
macaddress
macmask
When ‘!’ is specified, the test is inverted. If not specified, matches only frames originating on the firewall itself.
ipaddress
ipmask
macaddress
macmask
When ‘!’ is specified, the test is inverted and the rule matches frames which do not match the specified address/mask. If not specified, matches only frames originating on the firewall itself. If both SOURCE and DEST are specified, then both interfaces must be bridge ports on the same bridge.
2
3
4
5
6
7
8
9
When ‘!’ is specified, the test is inverted and the rule matches frames which do not match the specified opcode.
Example
The eth1 interface has both a public IP address and a private address (10.1.10.11/24). When sending ARP requests to 10.1.10.0/24, use the private address as the IP source:
Files
/etc/shorewall/arprules