redhat would like to share connection with windows
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
redhat would like to share connection with windows
I just installed my modem under redhat8.0 and everything works well but I would like to share this connection with my windows machine.
I've tried to search the forums but find a few too complicated things about that
is there a simple way to share this connection? (I've tried with firestarter without success and the windows machine is properly configured)
Try:
# Save your current iptables setup
service iptables save
# Remove any current rules
iptables -F
# Enable forwarding of packets from eth0 to ppp0
iptables -A FORWARD -i eth0 -o ppp0 -m state --state RELATED,ESTABLISHED -j ACCEPT
# Enable IP forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward
Then set the Gateway ip on the windows machine to be the same as the linux box. Also set the DNS ip on the windows box to being whatever your isp uses.
If this works then you can set about making the changes more permenant - no reboot on the linux box should be neccessary bu the windows machine may need to be restarted in order for the gateway to change.
If it doesn't work post any error messages and the output from these on linux:
iptables -L
route
cat /proc/sys/net/ipv4/ip_forward
well, I tried that but when I does it ; my lan doesn't work anymore because I'm unable to access the windows machine with vncviewer and I get Destination Host Unreachable when I try to ping it
cat /proc/sys/net/ipv4/ip_forward
0
--> which is strange =)
_________________________________________________________
./iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ok, actually I did reboot the computer... now I did everything again without rebooting, the lan works again (I don't know why =)) but I still cannot browse a website on the windows machine
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.