Ask Your Question

LAN and Internet Sharing

asked 2012-03-03 02:28:45 -0500

Anil Chamuah gravatar image

updated 2013-08-19 01:16:10 -0500

FranciscoD_ gravatar image

How to setup a wired LAN connection between a FEDORA 16 Laptop and a Windows XP Laptop. And also how to share the DSL internet connection in the Fedora 16 laptop so that to use it in XP Laptop?

edit retag flag offensive close merge delete


I'm not quite clear on what you're asking. Is your Fedora 16 system connected to the internet via wifi, and do you want to make this internet connection available to the Windows machine via LAN/ethernet?

FranciscoD_ gravatar imageFranciscoD_ ( 2013-08-19 01:17:43 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2019-03-06 16:33:20 -0500

tarik gravatar image

Peace be upon those who follow guidance,

I found it simple to share internet between fedora 29 and windows vista via LAN by using the following:

  1. Run nm-connection-editor
  2. Add new connection
  3. In IPv4 setting set method to Shared with other devices
  4. MAC address set to stable
edit flag offensive delete link more

answered 2012-03-06 01:42:48 -0500

satyaakam gravatar image

if you have a router or switch you can use straight cable and connect these two machines, if you do not have either then you can use cross cable to connect .

do the following on the Linux box on using which you are connected to Internet

Flush all the present rules

iptables -F

iptables -t nat -F

iptables -t mangle -F

Delete any rules you have

iptables -X

iptables -t nat -X

iptables -t mangle -X

service iptables save

service iptables restart

enable packet forwarding

echo "1" > /proc/sys/net/ipv4/ip_forward

to make this change permanent you can copy the above line in /etc/rc.d/rc.local

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

service iptables save

service iptables restart

now try to browse using the xp laptop , be sure they are in same subnet and routing tables is pointing to the linux box.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2012-03-03 02:28:45 -0500

Seen: 6,455 times

Last updated: Aug 19 '13