The time now is 11/22/08 - 16:16
Log in: Username: Password:
Search forums for:
  

Networking Question

Post new topic   Reply to topic
Author Message
khrath
Guest







PostPosted: 11/06/03 - 07:31    Post subject: Networking Question Reply with quote

Ok i've been racking my brain trying to get this to work now for like hours.

I have a dsl modem that has one ethernet port on it.

You can cable it to a single host that you plug straight into the modem from the nic...or you can plug the modem into a hub and it will automatically NAT every host you plug in to the hub also.

The modem logs itself into the isp, so there's no logging in involved...it's all done automatically the second you plug the phone line is.

My problem is this....the stupid thing runs NAT regardless. I can forward over every packet out there to specific hosts, but cant assign a real world ip to anything, because the d*****s modem assigns it to itself, then gives me an ethernet port i can plug in to, with an internal ip assigned to it.

I can't for the f*****g life of me get multiple computers to work, unless I put them all on a hub connected to the modem.....but that isnt what I want.

What I want, is to plug the modem straight into my bsd box, run nat on the bsd box, and have a hub plugged into a second nic on the bsd box, that connects to my local lan, which it would run nat for and allow it to connect to the net, like this....

[modem[A]-----[B]bsd box[C]-----[hub]-----[D]win box]

A 192.168.1.1
B 192.168.1.100
C 192.168.0.100
D 192.168.0.1

I know there HAS to be a way to get this working, but I can't for the f*****g life of me figure out how to run NAT for my lan, over a connection that is connected to the net with a NAT'd connection.


is is possible, or am i just f****d?

I know I may as well just run it behind the homosex modem, it has built in gay firewall shit, but that basically renders my bsd box useless, and i lose so much control over my network without having it as a gateway.
Back to top
TASB
Sir Postalot
Sir Postalot


Joined: 12 Oct 2002
Posts: 1104
Location: The Outback



PostPosted: 11/06/03 - 08:20    Post subject: Reply with quote

Yeah you can do it. That's basicly how I have my network set up. However I have.

[Cable] - [astaro] - [hub] - [LAN]

You interface connecting to the internet should be acepting DHCP from the modem. You then have your firewall rules in the BSD box performing NAT to that interface.
Back to top
kemble
RealPoor Sensei
RealPoor Sensei


Joined: 14 Oct 2002
Posts: 1909
Location: MI



PostPosted: 11/06/03 - 08:21    Post subject: Reply with quote

Couple things. What is the make and model of your DSL modem? Some have options to turn NAT off via a browser interface. Some disable NAT if they are booted with no ethernet cable attached but it is all manufacturer specific. You also could look into the possibility of purchasing a non h**o-ized DSL modem.

Assuming you can't disable NAT... There are solutions to your problem, but before getting into that.. does the fact that there is a firewall imbedded in the dsl modem make the venture pointless? Because there is no way around that short of replacing the hardware or disabling it via an admin interface.
Back to top
khrath
Guest







PostPosted: 11/06/03 - 08:23    Post subject: Reply with quote

kemble, i do way more than firewall with my bsd box.

i'm going to try putting the two interfaces on seperate subnets, i read a few places that it wont work if the first 6 digits in the ip are the same.....i'll let ya know how it works =p
Back to top
Janoth
RealPoor Guru
RealPoor Guru


Joined: 17 Nov 2002
Posts: 3135



PostPosted: 11/06/03 - 08:29    Post subject: Reply with quote

WWWWWWWWWWWWWOOOOOOOOOOOOOOOOOOOSSSSSSSSSSSSSSSSSSSSSSSSSSSSHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH


That was the sound of this post going completly over my head.
Back to top
TASB
Sir Postalot
Sir Postalot


Joined: 12 Oct 2002
Posts: 1104
Location: The Outback



PostPosted: 11/06/03 - 08:57    Post subject: Reply with quote

Well, you can't have both segments on the same subnet. It shouldn't have anything to do with the first 6 digits but rather the network address.
Back to top
khrath
Guest







PostPosted: 11/06/03 - 09:07    Post subject: Reply with quote

they weren't, but anything is worth a try =p
Back to top
TASB
Sir Postalot
Sir Postalot


Joined: 12 Oct 2002
Posts: 1104
Location: The Outback



PostPosted: 11/06/03 - 09:25    Post subject: Reply with quote

For the moment forget about the LAN, just get the BSD box connected so you can ping google or some shit. Once that's working getting the rest to go shouldn't be a problem.
Back to top
sinrakin
RealPoor Master of Posts
RealPoor Master of Posts


Joined: 11 Oct 2002
Posts: 7044



PostPosted: 11/06/03 - 10:14    Post subject: Reply with quote

There's no reason you can't do two levels of NAT. The only tricky part is configuring BSD to use the DHCP address obtained from the DSL modem as its "public" address. I haven't configured it on BSD so I'm not sure if that's possible, but I know I've used systems with 2-level NAT, so it should be.
Back to top
khrath
Guest







PostPosted: 11/06/03 - 10:38    Post subject: Reply with quote

thats what i ended up doing.

the modem has a feature if you go ass out dmz on it, it'll forward a public ip to you via dhcp.

after i had a public ip on one interface it was cake lol

tasb, i always had connectivity from the bsd box, how you think i posted? =D
Back to top
compusmack
RealPoor Master of Posts
RealPoor Master of Posts


Joined: 15 Oct 2002
Posts: 6354



PostPosted: 11/06/03 - 10:42    Post subject: Reply with quote

sinrakin wrote:
There's no reason you can't do two levels of NAT. The only tricky part is configuring BSD to use the DHCP address obtained from the DSL modem as its "public" address. I haven't configured it on BSD so I'm not sure if that's possible, but I know I've used systems with 2-level NAT, so it should be.


I think this would work, unless you can't route the ips given out from the modem. Aren't ips in the 192.168.xxx.xxx range inherently unroutable?

I think this modem is basically a router/firewall without the hub if im not mistaken. Buying a new modem would be my first choice, so you can NAT from your BSD box straight off a WAN ip. If you try and NAT from the modem, you may run into problems with the firewall on the modem (unless it's configurable).
Back to top
compusmack
RealPoor Master of Posts
RealPoor Master of Posts


Joined: 15 Oct 2002
Posts: 6354



PostPosted: 11/06/03 - 10:43    Post subject: Reply with quote

Khrath wrote:
thats what i ended up doing.

the modem has a feature if you go ass out dmz on it, it'll forward a public ip to you via dhcp.

after i had a public ip on one interface it was cake lol

tasb, i always had connectivity from the bsd box, how you think i posted? =D


ahh.. yeah that works too. DMZ overrides the firewall.
Back to top
TASB
Sir Postalot
Sir Postalot


Joined: 12 Oct 2002
Posts: 1104
Location: The Outback



PostPosted: 11/06/03 - 10:45    Post subject: Reply with quote

Khrath wrote:
tasb, i always had connectivity from the bsd box, how you think i posted? =D


Redundant internet connection =)
Back to top
khrath
Guest







PostPosted: 11/06/03 - 10:47    Post subject: Reply with quote

XFree86 + Mozilla Firebird
Back to top
r00typooh
RealPoor Master of Posts
RealPoor Master of Posts


Joined: 11 Oct 2002
Posts: 5178
Location: Miami, FL



PostPosted: 11/06/03 - 11:09    Post subject: Reply with quote

lol janoth.
Back to top
Display posts from previous:   
Post new topic   Reply to topic
Page 1 of 1

Related topics:
Hosting / Networking Question
Wireless Networking Issue
Networking
win32 api for networking
need help networking xbox and computer...
Wireless networking
quick networking ?
Anyone knowledgeable about Routers / Networking?
Need Wireless Networking Advice
Xbox 360™ Wireless Networking Adapter Anyone have this?
Networking question
Wireless Networking
Windows Networking Question
networking help
networking
EverQuest 2 Expansions questions
question about scholar in LOTRO
Anarchy Online and Operating system question
Few questions about Warhammer Classes
Question on City of Villains Leveling
Final Fantasy XI Controlers question?
DVD-R & RW Question
greatest poll question ever
questions on paypal an how safe it really is
Got a few questions about D&D Online
Question >_>
Questions for beta players
Noobie photoshop question
New to Guild Wars and have some questions
New EvE Online Player's question
Question about trading.
Tradeskill Question for EverQuest 2
Bit torrent client question
frontpage question
Question about the Vanguard world map