Ты знаешь, как использовать скрипт в MT? да нет понятия, что это такое 0 голосов
Всем привет:
У меня есть правило в цепочке обработки, которое я никак не могу понять.
`chain=forward dst-address=172.31.5.252 protocol=tcp action=jump jump-target=chat`
`19:00:32 firewall,info before chat: in:ether1 out:ether2, src-mac a:b:c:d:e:f, proto TCP (SYN), w.x.y.z:57208->172.31.5.252:443, len 60`
`19:00:32 firewall,info ssh chat: in:ether1 out:ether2, src-mac a:b:c:d:e:f, proto TCP (SYN), w.x.y.z:57208->172.31.5.252:443, len 60`
`19:00:32 firewall,info ssl chat: in:ether1 out:ether2, src-mac a:b:c:d:e:f, proto TCP (SYN), w.x.y.z:57208->172.31.5.252:443, len 60`
`19:00:32 firewall,info chat: in:ether1 out:ether2, src-mac a:b:c:d:e:f, proto TCP (SYN), w.x.y.z:57208->172.31.5.252:443, len 60`
Это выводит в лог:
`chain=chat protocol=tcp action=log log-prefix="before"`
`chain=chat dst-address=172.31.5.252 dst-port=22 action=log log-prefix="ssh"`
`chain=chat dst-address=172.31.5.252 dst-port=443 connection-state=new action=log log-prefix="ssl"`
`chain=chat action=log log-prefix=""`
`chain=chat action=reject reject-with=icmp-host-unreachable`
Может, я совсем с ума сошёл, но как обоим dst-ports (22, 443) могут соответствовать? Буду очень благодарен за любую помощь.
А просто ради забавы я ещё кое-что попробовал. На этот раз они оба соответствуют порту, хотя это порт 23!
`19:09:30 firewall,info before chat: in:ether1 out:ether2, src-mac a:b:c:d:e:f, proto TCP (SYN), w.x.y.z:51480->172.31.5.252:23, len 60`
`19:09:30 firewall,info ssh chat: in:ether1 out:ether2, src-mac a:b:c:d:e:f, proto TCP (SYN), w.x.y.z:51480->172.31.5.252:23, len 60`
`19:09:30 firewall,info ssl chat: in:ether1 out:ether2, src-mac a:b:c:d:e:f, proto TCP (SYN), w.x.y.z:51480->172.31.5.252:23, len 60`
`19:09:30 firewall,info chat: in:ether1 out:ether2, src-mac a:b:c:d:e:f, proto TCP (SYN), w.x.y.z:51480->172.31.5.252:23, len 60`
Всем привет:
У меня есть правило в цепочке обработки, которое я никак не могу понять.
`chain=forward dst-address=172.31.5.252 protocol=tcp action=jump jump-target=chat`
`19:00:32 firewall,info before chat: in:ether1 out:ether2, src-mac a:b:c:d:e:f, proto TCP (SYN), w.x.y.z:57208->172.31.5.252:443, len 60`
`19:00:32 firewall,info ssh chat: in:ether1 out:ether2, src-mac a:b:c:d:e:f, proto TCP (SYN), w.x.y.z:57208->172.31.5.252:443, len 60`
`19:00:32 firewall,info ssl chat: in:ether1 out:ether2, src-mac a:b:c:d:e:f, proto TCP (SYN), w.x.y.z:57208->172.31.5.252:443, len 60`
`19:00:32 firewall,info chat: in:ether1 out:ether2, src-mac a:b:c:d:e:f, proto TCP (SYN), w.x.y.z:57208->172.31.5.252:443, len 60`
Это выводит в лог:
`chain=chat protocol=tcp action=log log-prefix="before"`
`chain=chat dst-address=172.31.5.252 dst-port=22 action=log log-prefix="ssh"`
`chain=chat dst-address=172.31.5.252 dst-port=443 connection-state=new action=log log-prefix="ssl"`
`chain=chat action=log log-prefix=""`
`chain=chat action=reject reject-with=icmp-host-unreachable`
Может, я совсем с ума сошёл, но как обоим dst-ports (22, 443) могут соответствовать? Буду очень благодарен за любую помощь.
А просто ради забавы я ещё кое-что попробовал. На этот раз они оба соответствуют порту, хотя это порт 23!
`19:09:30 firewall,info before chat: in:ether1 out:ether2, src-mac a:b:c:d:e:f, proto TCP (SYN), w.x.y.z:51480->172.31.5.252:23, len 60`
`19:09:30 firewall,info ssh chat: in:ether1 out:ether2, src-mac a:b:c:d:e:f, proto TCP (SYN), w.x.y.z:51480->172.31.5.252:23, len 60`
`19:09:30 firewall,info ssl chat: in:ether1 out:ether2, src-mac a:b:c:d:e:f, proto TCP (SYN), w.x.y.z:51480->172.31.5.252:23, len 60`
`19:09:30 firewall,info chat: in:ether1 out:ether2, src-mac a:b:c:d:e:f, proto TCP (SYN), w.x.y.z:51480->172.31.5.252:23, len 60`
