 | DHCP on Tomato can't see pfSense and wise versa? Hi all,
I'm hoping this is possible to do.
Tomato running: tomato-K26USB-1.28.7495.1MIPSR2-Toastman-RT-Std pfSense running: v2.0.1 with 6 port switch.
pfSense IP: 192.168.1.1 Subnet mask: 255.255.255.0
Tomato (Asus N16) IP: 192.168.1.2 Subnet mask: 255.255.255.0
In order to get bandwidth limiter working I need to have DHCP running and it works as far as limiting certain MAC addresses.
As soon as I turn off DHCP server on Tomato bandwidth limiter stops working.
Also when DHCP is on I can't connect to pfSense GUI from laptop that is connected to Tomato same goes from computer connected to switch it can't connect to Tomato GUI.
Both clients have internet but can't browse each others shares which is my goal.
»i.imgur.com/iFIAI.jpg
TIA |
|
 | I still have not found the solution for this. Maybe my initial post is to confusing but all I want to do is Able to access other network shares while DHCP is turned on tomato router. |
|
 tobyTroy Mcclure join:2001-11-13 Seattle, WA | Can you draw a diagram of your network, how these two routers are connected. |
|
 billaustinthey call me Mr. BillPremium,MVM join:2001-10-13 North Las Vegas, NV kudos:2 | reply to JohnnyBeGood And why you are trying to use two routers, and what type of internet connection you have, and is it provided by a modem or a router/modem combination? |
|
 | reply to toby said by toby:Can you draw a diagram of your network, how these two routers are connected. Sure. What people use to make those nice looking diagrams, PowerPoint? |
|
 tobyTroy Mcclure join:2001-11-13 Seattle, WA | you could, or just scribble it in paintbrush. |
|
 | reply to toby
 Network Diagram |
Here's my network diagram. |
|
 | reply to billaustin said by billaustin:And why you are trying to use two routers, and what type of internet connection you have, and is it provided by a modem or a router/modem combination? Reason for two routers is that I like tomato's bandwidth limiter. I have cable modem connection. No, modem has no router capabilities. |
|
 Reviews:
·Fairpoint Commun..
·Verizon FiOS
| reply to JohnnyBeGood We may need to know that the Asus gets an IP address from pfSense in the 192.168.1.X range.
pfSense will need to know that the way to the 192.168.2.X subnet is via the 192.168.1.X Tomato interface. This is normally done using static routes.
I have no specific experience with pfSense or Tomato, so I can't recommend menu specifics.
kirby |
|
 | said by Kirby Smith:We may need to know that the Asus gets an IP address from pfSense in the 192.168.1.X range.
pfSense will need to know that the way to the 192.168.2.X subnet is via the 192.168.1.X Tomato interface. This is normally done using static routes.
I have no specific experience with pfSense or Tomato, so I can't recommend menu specifics.
kirby Yes, Asus gets this ip from pfSense: 192.168.1.117
I see your point about how pfSense needs to know how to get to the 192.168.2.X subnet and that is done here: Static Routes on pfSense 2.0 are managed at System > Routing, on the Routes tab. »doc.pfsense.org/index.php/Static_Routes
and at the same time I need to tell tomato how to get to 192.168.1.X subnet. |
|
 | reply to JohnnyBeGood
 overview |  basic network |
|
|
 billaustinthey call me Mr. BillPremium,MVM join:2001-10-13 North Las Vegas, NV kudos:2 | reply to JohnnyBeGood If you are going to use two routers, you want the bandwidth limiter to be effective, and you want the PC's to see each other, then you need to change the way things are connected.
The WAN port on the pfSense box should be connected to the modem. It should be getting a public IP from the ISP. Either DHCP or Static, depending on what you are paying for.
I would set the pfSense LAN address to 192.168.2.1 with the DHCP server on and the pool from .101 to .110 (depending on how many devices you will need here).
The WAN address on the Tomato Router should be set for DHCP (or Automatic). The LAN port on the pfSense box should be connected to the WAN port on the Tomato Router.
I would set the Tomato LAN address to 192.168.1.1 with the DHCP server on and the pool from .101 to .130 (depending on how many devices you will need here). All your devices needing internet access should be connected to the LAN side of the Tomato Router.
This configuration will make the pfSense the main router. It will make the bandwidth limiter on the Tomato router effective. It will allow all the PC's to see each other (printer and file sharing will work).
If you need to do port-forwarding for any devices, it will have to be done in both routers. On the pfSense box, it will need to be forwarded to the Tomato address. On the Tomato Router, it will need to be forwarded to the actual device. |
|
 | reply to JohnnyBeGood
 pfSense DHCP server |
Thank you for taking time to reply!
I alredy have everything setup exactly as you describe except part about IPs. What is the reason for having pfSense IP: 192.168.2.1 and tomato 192.168.1.1 ?
Also attched is the pfSense DHCP server current setting. Why all clients had to start .101 instead .100? |
|
 billaustinthey call me Mr. BillPremium,MVM join:2001-10-13 North Las Vegas, NV kudos:2 | Set the main router LAN to a range that is not commonly used so it doesn't have to be changed in the future, and doesn't conflict with items connected downstream. Most routers default to 0.1 or 1.1 for the LAN. If you replace the Tomato Router in the future, or just reset to defaults, you avoid the issues with duplicated IP ranges.
You could also use one of the other available private ranges (like 10.0.0.1) for the pfSense LAN.
Starting with .101 instead of .100 is just a personal preference. |
|
|
|
 | I just changed pfSense to 192.168.2.1 and tomato 192.168.1.1 and I can access pfSense (»192.168.2.1) from laptop but I can't access tomato (»192.168.1.1) from desktop.
Also, when on laptop I can't see desktop computer under "my network places". If I type \\192.168.2.100 I can see desktop share. |
|
 billaustinthey call me Mr. BillPremium,MVM join:2001-10-13 North Las Vegas, NV kudos:2 | Then you don't have it connected the way I told you. ALL devices needing internet access should be connected to the LAN side of the Tomato Router. You have the desktop connected to the LAN side of the pfSense box, where ONLY the Tomato Router should be connected. |
|
 | said by billaustin:Then you don't have it connected the way I told you. ALL devices needing internet access should be connected to the LAN side of the Tomato Router. You have the desktop connected to the LAN side of the pfSense box, where ONLY the Tomato Router should be connected. So your're saying to route all internet traffic thru tomato? I understand then everything will work because all clients will be on same network. Then, there's no need for pfSense which is not my goal. All I want tomato to handle wireless connections. |
|
 billaustinthey call me Mr. BillPremium,MVM join:2001-10-13 North Las Vegas, NV kudos:2 | What exactly is your goal? If you want the PC's to see each other, they need to be in the same subnet.
When I asked why you had two routers, you said you wanted to use the bandwidth limiter in the Tomato Router.
If you are just using the Tomato unit to provide wireless access, then configure it as an Access Point, not as a Router. |
|
 Reviews:
·link2voip
·TekSavvy DSL
| reply to JohnnyBeGood I just saw this thread for the first time. I use pfsense and Tomato professionally, so I hope I can help.
I don't think it's entirely clear what you're trying to do, so let's start by clarifying your goals. You have a cable internet connection, two routers (pfsense and tomato), and a bunch of wired and wireless clients. You want the wireless clients to use tomato's traffic shaper, but not the wired clients. You want the wired and wireless clients to have free access to each other.
Right so far? Do you want free access between wired and wireless hosts, or just certain services, like windows file sharing? Do you want the access going both ways, or would you prefer that only the wired clients be accessible by the wireless and not vice-versa, for example? -- db |
|
 Reviews:
·link2voip
·TekSavvy DSL
| reply to JohnnyBeGood I just re-read this thread and I'm pretty sure I understand what you're asking.
As billaustin said, the pfsense LAN and tomato LAN need to be in non-overlapping subnets. Tomato's WAN needs to be on the same subnet as pfsense's LAN, and use pfsense as its default gateway. The easiest way to do this is to set Tomato's WAN to dhcp. So for example:
pfsense WAN: dhcp LAN: 192.168.1.1/24 dhcp server enabled
tomato WAN: dhcp LAN: 192.168.2.1/24 dhcp server enabled
If you only do that, then your setup will enable you to browse wired shares from wireless hosts. If that's your goal, then you could stop here.
However, with the above setup, wired hosts won't have access to wireless hosts or shares because tomato is acting as a NAT firewall, preventing access in that direction. The other potential problem is that you have a double NAT for the wireless hosts, which can make troubleshooting difficult. If you want to change that, you have to do the following:
In tomato, under Advanced>Routing, change mode from Gateway to Router. Hit the save button. This tells Tomato to route between WAN and LAN without doing address translation, so the second NAT in your network is eliminated.
The problem now is that pfsense doesn't know where 192.168.1.0/24 is, so let's tell it:
In pfsense, go to Services>DHCP Server or Status>DHCP Leases and create a dhcp reservation for tomato, ensuring that it always gets the same WAN IP address.
Now in pfsense go to System>Routing and create a new gateway as follows:
Interface: LAN Name: whatever you want to name it. "Tomato" is probably a good choice. Gateway: enter Tomato's WAN IP address. hint: this is the same address that you just created a reservation for. Hit Save.
Now click on the Routes tab (still under System>Routing). Create a new route as follows:
Destination Network: 192.168.1.0/24 (this must match the LAN subnet of Tomato) Gateway: Choose the gateway you just created, ie "Tomato". Description: as you like Hit save. Hit "Apply Changes" button if it appears.
Now pfsense knows where to find the wireless hosts, but the wired hosts do not. So at this point if a wired host wants to send a packet to a wireless host, 192.168.1.100 for example, it will foward the packet via its default route, pfsense. If I'm not mistaken, pfsense will reply with a special ICMP packet to tell the wired host that the destination host, ie, 192.168.1.100, can be reached via the gateway of 192.168.2.100 (or whatever Tomato's WAN address happens to be). The wired host then re-sends its packet to Tomato for delivery to 192.168.1.100.
If I'm wrong about the last part, or if you want to skip the added traffic and latency of having to involve pfsense every time a wired host wants to send a packet to a wireless host, then you need to add a static route to your wired hosts, so that they know that Tomato is the gateway to the wireless network.
This is done on a Windows box thus:
Open a command prompt (as an administrator if on Vista or 7)
route -p add 192.168.1.0 mask 255.255.255.0 192.168.2.100
And finally, the reason your wireless hosts can see network shares on wired hosts only when explicitly pointed to the wired host is that Windows' Network Neighbourhood relies on broadcasts to discover sharing hosts. Meanwhile, Tomato's traffic shaper works only when routing from LAN to WAN. Broadcasts only work within the same subnet, and routing only works between subnets. Therefore, your two goals of browsing shares between networks, and shaping traffic between the same two networks, are in direct conflict; you can't have both.
Actually, I believe by deploying a WINS server on your network you can do both. I'm not familiar with WINS, but my understanding is that it is kind of like a DNS for Windows networks. You may want to look into it.
Let us know how you make out.
-- db |
|