mirror of https://github.com/aredn/aredn.git
59 lines
1.3 KiB
Plaintext
59 lines
1.3 KiB
Plaintext
|
# Copyright (C) 2006 OpenWrt.org
|
||
|
#
|
||
|
# RULE SYNTAX:
|
||
|
#
|
||
|
# forward:<intf>:<match>:<target>[:<port>]
|
||
|
# - forwards all packets matched by <match> to <target>,
|
||
|
# optionally changing the port to <port>
|
||
|
#
|
||
|
# accept:<intf>:<match>
|
||
|
# - accepts all traffic matched by <match>
|
||
|
#
|
||
|
# drop:<intf>:<match>
|
||
|
# - drops all traffic matched by <match>
|
||
|
#
|
||
|
# <intf> is the external interface to which the rule applies
|
||
|
# value is either "wifi" or "wan"
|
||
|
#
|
||
|
#
|
||
|
# MATCHING OPTIONS:
|
||
|
#
|
||
|
# src=<ip>
|
||
|
# - match the source ip <ip>
|
||
|
#
|
||
|
# dest=<ip>
|
||
|
# - match the destination ip <ip>
|
||
|
#
|
||
|
# proto=<proto>
|
||
|
# - match the protocol by name or number
|
||
|
#
|
||
|
# sport=<port(s)>
|
||
|
# - match the source port(s), see below for syntax
|
||
|
#
|
||
|
# dport=<port(s)>
|
||
|
# - match the destination port(s), see below for syntax
|
||
|
#
|
||
|
#
|
||
|
#
|
||
|
# PORT SYNTAX:
|
||
|
#
|
||
|
# Arbitrary lists of ports and port ranges are in the following format:
|
||
|
# - 22,53,993,1000-1024
|
||
|
#
|
||
|
# If you don't set the protocol to tcp or udp, it will apply to both
|
||
|
#
|
||
|
#
|
||
|
#
|
||
|
# EXAMPLES:
|
||
|
#
|
||
|
# drop:wan:dport=22 src=1.3.3.7
|
||
|
# accept:wifi:proto=tcp dport=22
|
||
|
# forward:wifi:dport=60168:192.168.1.2:60169
|
||
|
|
||
|
accept:wan:dport=2222 proto=tcp
|
||
|
accept:wan:dport=8080 proto=tcp
|
||
|
accept:wifi:dport=2222 proto=tcp
|
||
|
accept:wifi:dport=8080 proto=tcp
|
||
|
accept:wifi:dport=698 proto=udp
|
||
|
accept:wifi:dport=1978 proto=tcp
|