two links

Paul A. Procacci pprocacci at datapipe.com
Mon Feb 11 00:12:13 UTC 2008


Suprema Informática Ltda - Leandro wrote:
> Good morning,
>
> I need active two links of internet, but i don´t know do this.
> I have 3 interfaces
>
> internet 1 adsl gateway = 172.168.0.254   -   ip interface = 
> 172.168.0.253
> internet 2 adsl gateway = 192.168.1.254   -   ip interface = 
> 192.168.1.253
>
> interface to lan internal = 10.0.0.254
>
> My default gateway is 172.168.0.254.
>
> I need active the second link (192.168.1.254) only access port 22, 
> just port 22.
>
>
> Freebsd 6.3 + ipfw
>
>
> Thanks for all.t
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe at freebsd.org"
First explictly allow transmission on the interface in question, and 
deny everything else.  Additionally, you probably want to keep state 
within the ruleset as well.

ipfw add <some_num> allow tcp from any to me 22 in via <interface>
ipfw add <some_num+2> deny tcp from any to me 22


More information about the freebsd-questions mailing list