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.

🔀 Juniper Networks EX2300-C-12P 12× Gigabit PoE+ • 2× 10G SFP+ Compact Switch ⚡
$109.99
Juniper EX2300 12-Port Gigabit PoE+ Managed Network Switch P/N: EX2300-C-12P
$149.99
Juniper Networks EX2300-48P 48-Port PoE Gigabit Switch (Renewed)
$345.97
Juniper QFX5100-48S-3AFI 48-Port SFP+ 6 QSFP+ 2x SFP/RJ-45 Management
$249.97
New Sealed Juniper EX4100-F-12P 12x 1GbE PoE 2x 10GbE uplinks 1 Year Warranty
$895.00
Juniper EX4600-40F-AFO 24-Port Dual PSU Network Switch
$164.98
Juniper Networks EX2300-48P 48-Port Gigabit PoE Managed Ethernet Switch
$79.99
Juniper EX3400-48T-AFI Ethernet Network Switch 48x1GbE 4x10GbE SFP+ 2x40GbE QSFP
$139.00
New Juniper Networks EX3400-48P 48-Port PoE+ 4-Port SFP+ Ethernet Switch Sealed
$466.65
Juniper Networks SRX220 8-Port Gigabit Layer 3 Managed Rackmount RJ-45 USB
$285.00