/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting!
/* ALSO: Don't quote this header. It makes you look lame :-) */
Jamin Collins wrote:
> Glen Lee Edwards [mailto:[EMAIL PROTECTED]] wrote:
> >
> > I have a DSL connection that looks something like this:
> >
> >
> > WWW
> > |
> > [Cisco Router]
> > |
> > |
> > [PC 1] -----------------[HUB}---------------- [PC 3]
> > Linux |209.98.11. Linux
> > |eth0
> > [PC 2] Linux
> > |eth1
> > |192.168.1.
> > [PC 4] -----------------[HUB]---------------- [PC 5]
> > Windows |Windows
> > |
> > [HPPRINTER]
> >
> > I have the simple IP Masquerading set up in PC 2, which is
> > running RH 6.1.
> > The Windows computers in the 192.168.1 network can access the
> > web and all the
> > Linux boxes with no trouble. However, I can't get Linux PC 1
> > or PC 3 to access
> > the Windows computers in the 192.168.1 network. Is there any
> > way I can do this
> > with IP Masquerading? I'd like to be able to access the
> > printer hooked to PC 5
> > if possible.
>
> This is possible. You would need some rules set on PC 2 to first allow
> traffic inbound from PC 1&3. Then have a forwarding rule set.
> Additionally, PC 1&3 would have to have a route added to their routing
> tables to indicate that all traffic for your private network be routed to PC
> 2.
yes, you'd need ipmasqadm to set up port forwarding so
packets sent to a particular port on pc2 would be forwarded
to pc5. e.g.:
ipmasqadm portfw -a -P tcp -L $pc2_eth0_addr -R $pc5_addr 515
assuming that the windows host has a printer server that
talks the bsd printer protocol (possible). otherwise you'd
have to port forward samba traffic from pc1 and pc3 on to
pc5 and i'm not sure that would work (but it's worth a try).
it's probably best to run samba on pc2 and configure it
to be able to print to the hp and then pc1 and pc3 can
just ask pc2 to print for them. there'd be no port
forwarding required. use nat as a last resort, not a
a preemptive strike :)
raf
_______________________________________________
Masq maillist - [EMAIL PROTECTED]
Admin requests can be handled at http://www.indyramp.com/masq-list/ --
THIS INCLUDES UNSUBSCRIBING!
or email to [EMAIL PROTECTED]
PLEASE read the HOWTO and search the archives before posting.
You can start your search at http://www.indyramp.com/masq/
Please keep general linux/unix/pc/internet questions off the list.