ok i now got the ping req. at 192.168.2.100 but still same ping messages. destination host unreachable.
it should ping from wlan0 not eth0 so i think it should ping @ 192.168.1.102 |
i did
Code:
iptables -F Code:
service iptables save also i disabled the firewall creator that was inplamented by fedora 12 now all rules and chains will clear ! afther that i did Code:
iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE but still afther reboot i get the same ping req. Quote:
|
I think that you have the hoses hooked up right, but you're pumping the water the wrong direction.
Look at it this way: Iptables enables packets sent from wlan0 to be sent to eth0 or vise versa. It also alters the packets as necessary so that packets sent from wlan0 through eth0 are well formed... but Iptables has no idea which way the internet is located. It's just connecting this pipe to that pipe, and saying 'I"m acting like a router' or 'I'm acting like a switch'. There's absolutely no logic inherent in iptables that says packets headed for the internet need to be sent through wlan0. That logic lives in the routing tables. In order to print out the routing tables on your server, run the following command: Code:
/sbin/route |
Code:
/sbin/route: |
Quote:
|
Quote:
First, delete the routes to 192.168.1.1; these are going through the wrong interface. Code:
route del -host 192.168.1.1 Code:
route add -host 192.168.1.1 netmask 255.255.255.255 dev wlan0 Code:
192.168.1.0 * 255.255.255.0 U 2 0 0 wlan0 Quote:
|
[solved]
Quote:
Code:
route: netmask doesnt make sense whit host route Code:
route add -host 192.168.1.1 dev wlan0 Thanks for helping me out whit this... [SOLVED] ONLY one thing.. how do i set this perminantly? Fedora 12 ((afther i reboot NetworkManager i need to set route again. also if i reconnect wlan0 i need to set route again!!)) |
Quote:
Code:
/etc/rc.d/rc.local Code:
route add -host 192.168.1.1 dev wlan0 i read on this forum when the init scripts get updated rc.local will be cleared? also when i disconnect from wlan0 i need to reboot for rc.local to be read again. |
Quote:
Thanks for working with the route stuff, that was uncharted territory for me... I know how it works on a theoretical level, but I've never had the need or opportunity to actually change the routing. (The one time I did, I was very very new to networking and ended up routing packets back to the network that they came from, doubling the network load... someone else had to trouble shoot that one for me). Where did you find the info about setting routes in rc.local? |
here s the post
http://www.linuxquestions.org/questi...c-route-16769/ |
Quote:
if there was it made life much easyer |
Quote:
Quote:
|
Code:
/etc/sysconfig/network-scripts/route-eth0 but there is no Code:
/etc/sysconfig/network-scripts/route-wlan0 yes im new to setting routes. but thats the seccond point why im interesed in these things. im doing study LPI 1 so im little ahead on my study whit thisone. |
Quote:
I'd like to see route-eth0, partly because I'm running a Debian system that doesn't use that file, and I'm curious to see it, and partly because it might be useful. |
/etc/sysconfig/network-scripts/eth0
Code:
i think created by networkmanager |
All times are GMT -5. The time now is 03:01 PM. |