Hi, I am using a freeBsd7.0 computer as a transparent bridge between a windows computer and a router. We want to model the access of the windows computer through the freeBsd computer to Internet.
We created a bridge and we have access to Internet, and if we type the following instructions we get access to Internet in the Windows computer:
Ip1 is the IP address of the windows computer given by the router by DHCP, and ip2 is the IP address of a webpage (e.g. CNN). When we try to shape the connection, we see that several ip addresses exchange information with the windows computer, not only ip2.
What we would like to do is to control the entire connection, not only one ip, but the whole flow from the router to the freebsd machine, so we should change the third and fourth instructions, putting something there instead of ip1 and ip2.
Can anyboby give us a hand?
We created a bridge and we have access to Internet, and if we type the following instructions we get access to Internet in the Windows computer:
Code:
ipfw -f flush
ipfw -f pipe flush
ipfw -f ipfw add 1 pipe 100 tcp from ip1 to ip2 in
ipfw -f ipfw add 1 pipe 200 tcp from ip2 to ip1 in
ipfw pipe 100 config delay 2ms bw 10Mbit/s
ipfw pipe 200 config delay 2ms bw 10Mbit/s
Ip1 is the IP address of the windows computer given by the router by DHCP, and ip2 is the IP address of a webpage (e.g. CNN). When we try to shape the connection, we see that several ip addresses exchange information with the windows computer, not only ip2.
What we would like to do is to control the entire connection, not only one ip, but the whole flow from the router to the freebsd machine, so we should change the third and fourth instructions, putting something there instead of ip1 and ip2.
Can anyboby give us a hand?