Iptables Forwarding Works But Now No NFS Access.

This is a discussion on Iptables Forwarding Works But Now No NFS Access. within the Linux Networking forums, part of the Linux Forums category; Hi, I have set up my computers as follows: PC2 (192.168.1.2) connected to eth0 (192.168.1....


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-19-2004
Gazza
 
Posts: n/a
Default Iptables Forwarding Works But Now No NFS Access.

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 Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 02:45 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0