for internet sharing you want to search this site (or google) for ip masquerading / NAT configuration.
for filesharing you want to search for ssh and samba.
i have 2 comps connected, linux one with eth0 and directly connected to the net and the other as a client , i have no idea on how to share files and internet connection.
thanks
for internet sharing you want to search this site (or google) for ip masquerading / NAT configuration.
for filesharing you want to search for ssh and samba.
yes i want both nat and smb file sharing, but i have no idea, i know the command
but theres no rc.local to include itCode:-t nat -A POSTROUTING -o eth0 -j MASQUERADE
Do yourself (and the rest of the Internet) a big favor and buy yourself a cheap router. Thay are often under $10 after rebate in the US, since they are not made here I expect that you can find similar prices if you shop around a bit. You avoid problems fighting with Windows (which really doesn't like Linux and seems to go out of it's way not to work with it), as well as having a true NAT firewall to keep hackers out of your windows system. And all the time you spend rebooting the windows box will not affect the Linux system when you use a router.

GIGABYTE B365 HD3 LGA1151 Intel 9th Gen motherboard
$59.99
Corsair RMe RM850e 850W 80 Plus Gold Fully Modular Low Noise Certified Refurb
$58.99
ASUS PRIME Z890-P WIFI Z890 LGA 1851 ATX motherboard, Intel® Core™ Ultra Series
$235.99
Gigabyte GA-B85M-D3H Motherboard
$54.99
GIGABYTE A520M DS3H AC AMD AM4 Motherboard mATX
$59.99
Asus Prime B660M-A AC D4 Motherboard Intel LGA 1700 14th 13th 12th Gen DDR4
$79.99
Intel H81 Motherboard M.2 NVMe LGA 1150 mATX w/ IO Shield (Random Slot Color)
$29.90
MSI B550M PRO-VDH Micro-ATX Motherboard - AMD AM4, Ryzen 5000/4000/3000 Ready, P
$71.49
Gigabyte Z370M D3H LGA1151 DDR4 Micro ATX Motherboard PCIe 3.0 Desktop Mainboard
$77.99
ASUS PRIME Z490-V Motherboard Intel Z490 10th gen DDR4 LGA 1200 ATX w/ IO Shield
$84.99