jimp,
Thanks for your time to explain all these fundamentals.
So, it seems to me that there are 4 cases here:
1. LAN user initiates an upload to an external server
2. LAN user initiates a download from an external server
3. WAN user initiates an upload to an internal server (download from the perspective of the firewall)
4. WAN user initiates a download from an internal server (upload from the perspective of the firewall)
For cases 1 & 2, the states created are IN on LAN & OUT on WAN.
For cases 3 & 4, the states created are IN on WAN & OUT on LAN.
So far, I think this is OK.
Now, the objective is to shape all uploads and all downloads, whatever the origin of the connection.
Let's take an example for each of the 4 cases:
1. local user at IP address 10.0.0.100 on LAN initiates an HTTP upload to external server 100.101.102.103
2. local user at IP address 10.0.0.100 on LAN initiates an HTTP download from external server 100.101.102.103
3. external user at IP address 200.210.220.230 on Internet initiates an HTTP upload to internal server 10.0.0.200 (download from the perspective of the firewall)
4. external user at IP address 200.210.220.230 on Internet initiates an HTTP download from internal server 10.0.0.200 (upload from the perspective of the firewall)
Firewall rules on pfSense (Cisco-style):
On LAN tab:
permit ip host 10.0.0.100 host 100.101.102.103 (this rules caters for cases 1 & 2)
On WAN tab:
permit ip host 200.210.220.230 host 10.0.0.200 (this rules caters for cases 3 & 4)
Return traffic is dealt with by stateful pf.
Do I need to create the queues as follows for each of the 4 cases above?
1. qLAN-Upload (applied on LAN interface)
2. qLAN-Download (applied on LAN interface)
3. qWAN-Download (applied on WAN interface)
4. qWAN-Upload (applied on WAN interface)
How should I apply these queues to the rules (LAN, WAN, floating)?
LAN tab:
A. permit ip host 10.0.0.100 host 100.101.102.103 => Queue: qLAN-Upload/qLAN-Download ???
WAN tab:
B. permit ip host 200.210.220.230 host 10.0.0.200 => Queue: qWAN-Upload/qWAN-Download ???
Floating tab:
src 10.0.0.100 => dst 100.101.102.103: Action: Queue, Direction: Out, Interface: WAN, Queue: qLAN-Upload
Please help clear the confusion…
Thanks