Networking Forums

Networking Forums > Computer Networking > Linux Networking > Iptables Forwarding Works But Now No NFS Access.

Reply
Thread Tools Display Modes

Iptables Forwarding Works But Now No NFS Access.

 
 
Gazza
Guest
Posts: n/a

 
      07-19-2004, 09:17 PM
Hi,

I have set up my computers as follows:

PC2 (192.168.1.2) connected to eth0 (192.168.1.1) of PC1
PC4 (192.168.6.2) connected to eth3 (192.168.6.1) of PC1

I did the following (as Root):

/sbin/iptables -t nat -A PREROUTING -p tcp -i eth0 -d 192.168.1.1 --dport 80
-j DNAT --to 192.168.6.2:80

(with all commands on one line, of course) and:

/sbin/iptables -t nat -A POSTROUTING -p tcp -d 192.168.6.2 --dport 80 -j
SNAT --to 192.168.1.1

(with all commands on one line, of course) and now, when, on PC2, I point a
web browser at 192.168.1.1, I get PC4's home page instead of PC1's. Great!
(Is the above iptables stuff completely right? How could it be improved?)

Unfortunately, I can't access my files on PC4 from PC1, using NFS now.
What's wrong? The filesystem in question on PC4 was already mounted by PC1
when I did the iptables stuff. (I stopped the iptables stuff by
re-executing the lines above, replacing '-A' with '-D', as you would.)

Yours,
'Gazza'.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ip forwarding and iptables Angel Tsankov Linux Networking 1 05-17-2006 01:01 AM
iptables line works ... but why? bill.omer@gmail.com Linux Networking 0 02-28-2006 09:30 PM
Forwarding with iptables crancran@gmail.com Linux Networking 0 02-18-2006 03:56 PM
ssh dynamic port forwarding: works but getting connection errors Anthropic Aorta Linux Networking 0 10-30-2005 02:33 PM
iptables port forwarding "sort of" works Jody Bruchon Linux Networking 3 11-15-2004 04:35 PM



1 2 3 4 5 6 7 8 9 10 11