Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
iptables NAT - what am I doing wrong?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
kurdishmath
n00b
n00b


Joined: 13 Dec 2003
Posts: 2

PostPosted: Sat Dec 13, 2003 2:33 pm    Post subject: iptables NAT - what am I doing wrong? Reply with quote

I have two computers:
  1. dual-boot win2003 and gentoo. IP - 192.168.1.1
  2. win98. IP - 192.168.1.2
the win2003 has winroute firewall working and the win98 is able to surf the net using NAT and forwarded DNS.
the gentoo was configured by this outline:
  • compile the kernel modules related to netfilter, iptables.
  • emerge iptables
  • emerge firehol
  • emerge dnsmasq
  • rc-update add dnsmasq default
  • rc-update add firehol default
I configured firehol according to this tutorial (scroll to the buttom), modifying "195.97.5.192/28" to "192.168.1.0/24" and "ppp+" to "eth1".

Now when I boot the gentoo, the firewall is working fine, blocking connection attempts as expected. But the win98 is not able to surf the net.
I also tried a script generated from http://easyfwgen.morizot.net/gen/ with no success.
Can you see the problem here?
Back to top
View user's profile Send private message
jaska
Bodhisattva
Bodhisattva


Joined: 06 Jun 2003
Posts: 725
Location: Finland

PostPosted: Sat Dec 13, 2003 4:37 pm    Post subject: Reply with quote

Can you ping the gentoo box from the win98 box? If yes then you probably just need to get the proper dns servers into the win98 dns.
1. Find out the dns from the gentoo box
cat /etc/resolv.conf

2. write down the two ip addresses it should show
then write them into the win98 network settings under TCP/IP Networking, restart as I think you have to.
Back to top
View user's profile Send private message
kurdishmath
n00b
n00b


Joined: 13 Dec 2003
Posts: 2

PostPosted: Sat Dec 13, 2003 4:50 pm    Post subject: Reply with quote

jaska wrote:
Can you ping the gentoo box from the win98 box?
yes. I can even see the nice apache2 temporary page
jaska wrote:
If yes then you probably just need to get the proper dns servers into the win98 dns.
This is what I emerged dnsmasq for. The win98 dns settings point to 192.168.1.1 . But I'll try anyway just to make sure, thanks.
Edit: No need to change the dns settings on the win98. The dns forwarder works fine. The problem is with the packet forwarding.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
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