Jump to content

Another Wan Port Topic


condor
 Share

Recommended Posts

I'm super frustrated, and as always; I'm sure its my fault.

It takes me days of research and trial to get ANYTHING to work right, but this one seems simple and I CAN NOT figure it out. Seems everyone else experiences no problems...

I issued the iptables rules over 2 hours ago and I cannot get the pineapple to use my broadband conn.

Tbe pineapple is issued the ip of 10.0.0.7 from my router

I can ping and resolve host names of web sites but am unable to 'surf' to those sites from clients connected to pineapple. I feel I have been researching this here @ the forums, but I cannot seem to get it to work.

here's the routing table:

Kernel IP Routing Table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         172.16.42.42    0.0.0.0         UG    0      0        0 br-lan
default         10.0.0.1        0.0.0.0         UG    0      0        0 eth1
10.0.0.0        *               255.255.255.0   U     0      0        0 eth1
172.16.42.0     *               255.255.255.0   U     0      0        0 br-lan

please help.

Edited by condor
Link to comment
Share on other sites

I'm super frustrated, and as always; I'm sure its my fault.

It takes me days of research and trial to get ANYTHING to work right, but this one seems simple and I CAN NOT figure it out. Seems everyone else experiences no problems...

I issued the iptables rules over 2 hours ago and I cannot get the pineapple to use my broadband conn.

Tbe pineapple is issued the ip of 10.0.0.7 from my router

I can ping and resolve host names of web sites but am unable to 'surf' to those sites from clients connected to pineapple. I feel I have been researching this here @ the forums, but I cannot seem to get it to work.

here's the routing table:

Kernel IP Routing Table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         172.16.42.42    0.0.0.0         UG    0      0        0 br-lan
default         10.0.0.1        0.0.0.0         UG    0      0        0 eth1
10.0.0.0        *               255.255.255.0   U     0      0        0 eth1
172.16.42.0     *               255.255.255.0   U     0      0        0 br-lan

please help.

You mean you did issue these commands :

iptables -A FORWARD -i eth1 -o wlan0 -s 172.16.42.0 -m state --state NEW -j ACCEPT

iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT

iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE

And it did not work for your wan port ? And i see an extra rule that should not be there :

default 10.0.0.1 0.0.0.0 UG 0 0 0 eth1

MAYBE this will help you a little.

Edited by Molotof
Link to comment
Share on other sites

You mean you did issue these commands :

iptables -A FORWARD -i eth1 -o wlan0 -s 172.16.42.0 -m state --state NEW -j ACCEPT

iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT

iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE

And it did not work for your wan port ? And i see an extra rule that should not be there :

default 10.0.0.1 0.0.0.0 UG 0 0 0 eth1

MAYBE this will help you a little.

Yes, those are the rules I issued, then waited as I understand it may take some time to begin NAT'ing those ports?

As to that route, well perhaps it is there b/c I had the pineapple plugged into router (which assigned it that 10.0.0.7 addy) well before issuing the iptables rules?

Have you been able to get the WAN port to work with your home conn?

I don't really see any practical scenario, other than learning, for this setup, but I just love the challenges this thing presents me with. Thank you.

Link to comment
Share on other sites

Yes, those are the rules I issued, then waited as I understand it may take some time to begin NAT'ing those ports?

As to that route, well perhaps it is there b/c I had the pineapple plugged into router (which assigned it that 10.0.0.7 addy) well before issuing the iptables rules?

Have you been able to get the WAN port to work with your home conn?

I don't really see any practical scenario, other than learning, for this setup, but I just love the challenges this thing presents me with. Thank you.

We are all having fun here and learning at the same time :) yes it works on my end, try rebooting then issue the commands before connecting the wan port to your home router.

Link to comment
Share on other sites

w00t! it's working. just needed to issue iptables rules prior to plugging in cat5 cable.

and so it begins.....

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...