View previous topic :: View next topic |
Author |
Message |
kurdishmath n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 13 Dec 2003 Posts: 2
|
Posted: Sat Dec 13, 2003 2:33 pm Post subject: iptables NAT - what am I doing wrong? |
|
|
I have two computers:- dual-boot win2003 and gentoo. IP - 192.168.1.1
- 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 |
|
![](templates/gentoo/images/spacer.gif) |
jaska Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
Joined: 06 Jun 2003 Posts: 725 Location: Finland
|
Posted: Sat Dec 13, 2003 4:37 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
kurdishmath n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 13 Dec 2003 Posts: 2
|
Posted: Sat Dec 13, 2003 4:50 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|