I see that on some examples packets and connections are marked ...my question is why? Is there a time when you mark the connection only and other times just the packets?
Code: Select all
;;; http traffic connection mark
chain=prerouting action=mark-connection new-connection-mark=http
passthrough=yes protocol=tcp src-address-list=internal-nets
dst-port=80,443 log=no log-prefix=""
;;; http traffic connection mark
chain=prerouting action=mark-connection new-connection-mark=http-download
passthrough=yes protocol=tcp src-address-list=internal-nets
dst-port=80,443 connection-bytes=5000000-4294967295 log=no log-prefix=""
Code: Select all
;;; http in packet mark
chain=prerouting action=mark-packet new-packet-mark=http-in
passthrough=no in-interface=ether1 connection-mark=http log=no
log-prefix=""
;;; http out packet mark
chain=prerouting action=mark-packet new-packet-mark=http-out
passthrough=no connection-mark=http log=no log-prefix=""
Code: Select all
name="in" parent=global packet-mark="" limit-at=0 queue=default-small
priority=8 max-limit=10M burst-limit=0 burst-threshold=0 burst-time=0s
name="http-in" parent=in packet-mark=http-in limit-at=3M queue=default
priority=4 max-limit=10M burst-limit=0 burst-threshold=0 burst-time=0s
name="out" parent=global packet-mark="" limit-at=0 queue=default-small
priority=8 max-limit=10M burst-limit=0 burst-threshold=0 burst-time=0s
name="http-out" parent=out packet-mark=http-out limit-at=3M queue=default
priority=4 max-limit=10M burst-limit=0 burst-threshold=0 burst-time=0s