My firewall rules
0 and 25 i've put them afterwoods for testing and forwarding smtp.
-->> 0 X chain=dstnat action=dst-nat to-addresses=217.27.32.193 to-ports=25 protocol=tcp dst-port=25
1 chain=hs-unauth action=accept dst-address=46.21.53.182
2 D chain=dstnat action=jump jump-target=hotspot hotspot=from-client
3 I chain=hotspot action=jump jump-target=pre-hotspot
4 D chain=hotspot action=redirect to-ports=64872 protocol=udp dst-port=53
5 D chain=hotspot action=redirect to-ports=64872 protocol=tcp dst-port=53
6 D chain=hotspot action=redirect to-ports=64873 protocol=tcp hotspot=local-dst dst-port=80
7 D chain=hotspot action=redirect to-ports=64875 protocol=tcp hotspot=local-dst dst-port=443
8 D chain=hotspot action=jump jump-target=hs-unauth protocol=tcp hotspot=!auth
9 D chain=hotspot action=jump jump-target=hs-auth protocol=tcp hotspot=auth
10 D ;;;
www.about-pissouri.com
chain=hs-unauth action=return dst-address=147.202.120.120
11 D ;;; radius.pissourinet.net
chain=hs-unauth action=return dst-address=46.21.53.182
-->> 12 X chain=hotspot action=dst-nat to-ports=25 protocol=tcp src-address=10.5.7.0/24 src-port=25 dst-port=25
13 D chain=hs-unauth action=redirect to-ports=64874 protocol=tcp dst-port=80
14 D chain=hs-unauth action=redirect to-ports=64874 protocol=tcp dst-port=3128
15 D chain=hs-unauth action=redirect to-ports=64874 protocol=tcp dst-port=8080
16 D chain=hs-unauth action=redirect to-ports=64875 protocol=tcp dst-port=443
17 I chain=hs-unauth action=jump jump-target=hs-smtp protocol=tcp dst-port=25
18 D chain=hs-auth action=redirect to-ports=64874 protocol=tcp hotspot=http
19 I chain=hs-auth action=jump jump-target=hs-smtp protocol=tcp dst-port=25
20 X ;;; place hotspot rules here
chain=unused-hs-chain action=passthrough
21 ;;; masquerade clients
chain=srcnat action=masquerade src-address=10.5.7.0/24
22 X ;;; webproxy enable/dissable
chain=dstnat action=redirect to-ports=8080 protocol=tcp src-address=10.5.7.0/24 dst-port=80
23 X chain=dstnat action=accept protocol=tcp src-address=10.5.7.0/24 dst-port=80
and filter:
0 chain=hs-unauth-to action=return dst-address=46.21.53.182
1 D chain=forward action=jump jump-target=hs-unauth hotspot=from-client,!auth
2 D chain=forward action=jump jump-target=hs-unauth-to hotspot=to-client,!auth
3 D chain=input action=jump jump-target=hs-input hotspot=from-client
4 D chain=input action=drop protocol=tcp hotspot=!from-client dst-port=64872-64875
5 I chain=hs-input action=jump jump-target=pre-hs-input
6 D chain=hs-input action=accept protocol=udp dst-port=64872
7 D chain=hs-input action=accept protocol=tcp dst-port=64872-64875
8 D ;;;
www.about-pissouri.com
chain=hs-unauth action=return dst-address=147.202.120.120
9 D ;;; radius.pissourinet.net
chain=hs-unauth action=return dst-address=46.21.53.182
10 D chain=hs-input action=jump jump-target=hs-unauth hotspot=!auth
11 D chain=hs-unauth action=reject reject-with=tcp-reset protocol=tcp
12 D ;;;
www.about-pissouri.com
chain=hs-unauth-to action=return src-address=147.202.120.120
13 D ;;; radius.pissourinet.net
chain=hs-unauth-to action=return src-address=46.21.53.182
14 D chain=hs-unauth action=reject reject-with=icmp-net-prohibited
15 D chain=hs-unauth-to action=reject reject-with=icmp-host-prohibited
16 X ;;; place hotspot rules here
chain=unused-hs-chain action=passthrough
17 X chain=forward action=drop p2p=all-p2p
18 chain=input action=accept protocol=tcp src-address=217.27.32.193 dst-address=10.5.7.34 src-port=25
rule 18 is for testing the smtp with a destination address (my laptop)