How to do this:

Post new topic   Reply to topic    DD-WRT Forum Index -> X86 based Hardware
Author Message
Astrofreak
DD-WRT Novice


Joined: 07 Jun 2006
Posts: 30
Location: Radebeul (near DD)

PostPosted: Tue Feb 20, 2007 14:08    Post subject: How to do this: Reply with quote
Hi, I'm trying the folowing:
If have a WRAP with two eth ports and with two atheros cards.

One card is set to be client. (Ip 10.x.x.x)

I whant do do this:

Client Card and eth0 should do the same as now (RIP2 Routing)
But the secound card and eth1 should do a NAT with maybe 172.16.x.x IPs.
But I want to have acces to the 10.X.X.X Network.
Maybe it's also posible to set dnsmasq to serv both Networks via DHCP?
(10.x.x.x Ips on eth0, and 172.16.x.x Ips on eth1 and ath1).

Reason ist the folowing:

Client is conected to a bigger WLan community with ath0 as client. On eth0 it shoud serve an other WLan node on my roof, and i want to connect my printers PC, Laptop. But I don't want to give acces to these divices over the WLan community.
I'm not the biggest linux nerd Wink But I think I understand the very most. But I coundn't get this working, till now.

Thanks for help,
Astro

_________________
ASUS WL500gD - Olegs-Firmware -- 2 WRAP Boards with DD-WRT x86 -- WRT54GS v2 DD-WRT v24
Sponsor
Astrofreak
DD-WRT Novice


Joined: 07 Jun 2006
Posts: 30
Location: Radebeul (near DD)

PostPosted: Thu Feb 22, 2007 12:18    Post subject: Reply with quote
Is there nobody who can help me?

I've tried the folowing till now:
Deselect eth1 and ath1 from br0 and put the on der own bridge, with 172.16.x.x IP, I was able to ping the 10.x.x.x devices, but on one router between me an the Internet, the tracert stoped. I think the WRAP doesn't do NAt for br1 (eth1 and ath1), and 172.16.x.x IPs seem to be blocked. How can I enable NAT for br1? Without influenzing br0 witch does RIP2 ?

Any ideas?
-- Astro

_________________
ASUS WL500gD - Olegs-Firmware -- 2 WRAP Boards with DD-WRT x86 -- WRT54GS v2 DD-WRT v24
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7492
Location: Dresden, Germany

PostPosted: Thu Feb 22, 2007 14:30    Post subject: Reply with quote
with iptables. i already answered you this question with mail many days ago
_________________
"So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
Astrofreak
DD-WRT Novice


Joined: 07 Jun 2006
Posts: 30
Location: Radebeul (near DD)

PostPosted: Thu Feb 22, 2007 15:16    Post subject: Reply with quote
no nothing about iptables
you told me the things above, but nothing about the iptables settings

_________________
ASUS WL500gD - Olegs-Firmware -- 2 WRAP Boards with DD-WRT x86 -- WRT54GS v2 DD-WRT v24
Astrofreak
DD-WRT Novice


Joined: 07 Jun 2006
Posts: 30
Location: Radebeul (near DD)

PostPosted: Fri Feb 23, 2007 20:46    Post subject: Reply with quote
I think
Code:
iptables -t nat -A PREROUTING -i br1 -o ath0 -j MASQUERADE

should do it, but it doesn't work Sad

_________________
ASUS WL500gD - Olegs-Firmware -- 2 WRAP Boards with DD-WRT x86 -- WRT54GS v2 DD-WRT v24
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> X86 based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum