8ae5 Problem with configuration of 2’nd DSL link on FreeBSD 7.2 (gateway problem?) - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Networking

Networking Network related discussions (including general TCP/IP stuff, routing, etc).

Reply
 
Thread Tools Display Modes
  #1  
Old August 12th, 2009, 11:31
fanz fanz is offline
Junior Member
 
Join Date: Aug 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with configuration of 2’nd DSL link on FreeBSD 7.2 (gateway problem?)

Hi

I’m currently using FreeBSD 7.2-Release as my router.
I've got a PC with 2x DSL (from different providers) and 1 LAN. At this moment I've got one DSL link up and working.
The question is: how to set up 2'nd DSL connection (eg. ip/gate)?
At this moment I’m not thinking of advanced load balancing, but only to use 1’st DSL link as NAT and 2’nd DSL link for one dedicated service (eg. ftp).
I’ve got defaultgateway set in rc.conf to gate from 1'st DSL link, so the 2’nd DSL link is not reachable from WAN even if i properly set-up ip/mask for 2’nd NIC in rc.conf.
Any hints? What is the simplest way to reach this? Is pf necessary for this configuration?

Thank you in advance!
Fanz
Reply With Quote
  #2  
Old August 13th, 2009, 04:04
esogs esogs is offline
Junior Member
 
Join Date: Dec 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If your second DSL was the block 10.20.30.0, your ISP's gateway was 10.20.30.1, and you had been given 10.20.30.5 as your IP on the DSL you could first add a route for it:

% route add -host 10.20.30.5 10.20.30.1

Then, as you say, because you are specifically trying to route anything for port 21/22 over this DSL, I think I would use pf (or ipfilter) to map anything coming over either of your two dsl interfaces on those ports to that 10.20.30.5 address.

Even if you tied those two DSL links together, you'd have to likely use IPF or IPFILTER to do specific port remapping over the one specific interface.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
geometry problem maby? boot problem gulanito Installing & Upgrading 6 August 13th, 2009 16:19
dummynet + gateway basic configuration zammster Firewalls 2 July 24th, 2009 19:31
freebsd 7.1 default ipv6 gateway problem yavuzg Networking 4 June 9th, 2009 08:10
[SOLVED]"re0: no link..... giving up", my card driver or DHCP server problem ? vaclinux Installing & Upgrading 7 June 7th, 2009 05:34
xorg configuration problem francach X.Org 7 December 9th, 2008 13:07


All times are GMT +1. The time now is 12:13.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0