LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-22-2001, 03:32 AM   #1
Jimbo Mahoney
LQ Newbie
 
Registered: Aug 2001
Distribution: Mandrake 8.0
Posts: 25

Rep: Reputation: 15
Huh? iptables was working - now isn't!


Bummer.

OK.

My main machine (192.168.0.2, Win98se) was happily going through my linux box (192.168.0.1) using the following iptables settings:

iptables -P FORWARD ALLOW
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE

and everthing worked - UDP in games, FTP etc etc.

BUT

since installing vnc (using the KDE software install thingy) it doesn't work!! (I think that is the only change i have made to the system).

I put the above iptables settings in rc.firewall in /etc/rc.d to set them at boot (bear with me, I'm a noob ), but for some unknown reason, i can no longer get anywhere from my main machine (Win 98se).

pinging my linux box from my main machine works, as does vice-versa.

pinging external ip's from my linux box works (such as my isp's DNS servers)

the main machine still has the same TCP/IP settings (namely, gateway=192.168.0.1, DNS servers = 194.168.4.100, 194.168.8.100 - my ISPs DNS servers)

what has vnc done to my linux box?

i started it using vncserver and it asked me for a password and told me the hostname i should specify when logging in (I have sed VNC for windoze - windoze boxes, but not win-linux)

will vnc run at boot? or do i have to tell it to in some file (in /etc/rd.c for example?)

help please!!!!!!
 
Old 11-22-2001, 01:03 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
have you properly enabled the ip_forwarding in one of the scripts?

echo 1 > /proc/sys/net/ipv4/ip_forward
 
Old 11-22-2001, 01:08 PM   #3
Jimbo Mahoney
LQ Newbie
 
Registered: Aug 2001
Distribution: Mandrake 8.0
Posts: 25

Original Poster
Rep: Reputation: 15
hehe.

just this minute figured that out!!

lol

BUT, it keeps resetting itself to 0 after a reboot.

I've tried putting echo 1 > /proc/sys/net/ipv4/ip_forward in the rc.d/rc.firewall file, but no luck.

how do get ip_forward to stay set at 1?
 
Old 11-23-2001, 04:18 AM   #4
b0b0
Member
 
Registered: Nov 2001
Location: Kansas
Distribution: rh71/2, mandrake81
Posts: 53

Rep: Reputation: 15
Thank you, this post helped me much...I was missing that all important statement in my nat table.

jason
 
Old 11-23-2001, 05:01 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
oh, i forgot to reply to this last time!

put the line in /etc/rc.local, then it'll be pukka
 
Old 11-23-2001, 05:23 PM   #6
b0b0
Member
 
Registered: Nov 2001
Location: Kansas
Distribution: rh71/2, mandrake81
Posts: 53

Rep: Reputation: 15
Where is the best place to put your rules so that they are loaded after reboots?

thanks a bunch
 
Old 11-25-2001, 01:12 PM   #7
Jimbo Mahoney
LQ Newbie
 
Registered: Aug 2001
Distribution: Mandrake 8.0
Posts: 25

Original Poster
Rep: Reputation: 15
I put the iptables settings in /rc.d/rc.firewall

Cheers Acid_Kewpie - I will try putting echo 1 > /proc/sys/net/ipv4 in the rc.local file.

I assume that's what you meant?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables not working selfnet Linux - Networking 2 05-02-2005 12:23 PM
iptables not working with me picox Linux - Security 8 01-10-2005 03:54 AM
iptables not working ashfaq Linux - Software 1 03-24-2004 06:02 AM
Iptables not working? powerchord81 Linux - Networking 22 10-31-2003 10:18 AM
huh huh hey bevis Im guna build a puter! cognosti Linux - Hardware 28 08-12-2003 04:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration