9498
![]() |
|
|
|
|
|||||||
| Firewalls IPFW, PF, IPF (but not limited) related discussion |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hello,
I'm using freebsd7 as a gateway with ALTQ + PF for traffic shaping in two directions. Also I'm using ftp-proxy for ftp connections to the local server from outside. My question is, is it possible to shape ftp traffic in both directions? ftp-proxy in freebsd7 supports queue for the rules it creates, but doesn't support tags (which would solve the problem). This is what my rc.conf looks like: Code:
ftpproxy_enable="YES" ftpproxy_flags="-q FTPPROXY -R 192.168.0.8" Code:
pass in quick inet proto tcp from 91.78.191.70 to 192.168.0.8 port = 50001 flags S/SA keep state (max 1) queue FTPPROXY rtable 0 pass out quick inet proto tcp from 192.168.0.1 to 192.168.0.8 port = 50001 flags S/SA keep state (max 1) queue FTPPROXY rtable 0 Code:
altq on $int_if bandwidth 100Mb hfsc queue { dflt, user1, user2 }
...
altq on $ext_if bandwidth 100Mb hfsc queue { dflt, user1, user2 }
...
(Why this is unallowable, I don't understand. It would be very convenient to have one queue name (e.g. user1) defined on both router interfaces. The shaping parameters for that queue could be different for different interfaces and the number of rules would reduce.) At the same time, it's possible to use following: Code:
altq on {$int_if, $ext_if} bandwidth 100Mb hfsc queue { dflt, user1, user2 }
...
Is there any way to solve this problem? Thanks. |
|
#2
|
|||
|
|||
|
It seems that there is no solution for current version of ftp-proxy in Freebsd7, because it has not tags as opposed to ftp-proxy in Openbsd. The only way to queue proxy's traffic on both interfaces is to use default queues for it, so it is no so good solution.
Now, I disable ftp-proxy and just redirect some range of ports for ftp-server on $ext_if, and queue it in an conventional way. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Installation from FTP: cannot resolve hostname ftp... | Erratus | Installing & Upgrading | 20 | June 29th, 2010 18:25 |
| pf, ftp-proxy, nat, and dhcp | neurosis | Firewalls | 15 | May 20th, 2009 08:16 |
| FTP proxy | tomcatf14 | Web & Network Services | 5 | April 27th, 2009 08:40 |
| Postfix: Cannot flush mail queue | sniper007 | Web & Network Services | 1 | February 9th, 2009 02:25 |
| Monitor Network Traffic | bloodhound | Networking | 8 | January 27th, 2009 09:40 |