General :: Fedora12, XP And Connection Sharing Via Iptables?
Feb 1, 2011
I am trying to share internet connection with Fedora12 as default gateway and XP machine hooked up via NIC using iptables commands as shown in Mark Sobell's book 'A Practical Guide To Fedora And Red Hat Enterprise Linux' These are the commands as placed in /etc/rc.local
iptables -A FORWARD -i eth1 -o eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -i eth0 -o eth1 -j ACCEPT
iptables -A FORWARD -j LOG
iptables -t NAT -A POSTROUTING -o eth1 -j MASQUERADE
I did flip the in and out parameters to match my NIC configuration ( as opposed to example from book ) but other than that followed example. One thing to note is that Sobell did not mention whether this should work with mix of Linux and XP. One other note ( maybe meaningless ) is that I do have samba working between the two machines.
I would like to have all traffic from the ethernet connection out through the wireless (basically using the box as a router) however I am having some trouble doing this.
I have done this before on Windows however I am having some trouble doing this on linux, I have tried using Squid Proxy however I am having some trouble using configuring/using it.
I am using Yellow Dog Linux however I am willing to change to any other distro as long as it is compatable with PS3 (as this is what im using linux on)
I am totally new to Linux. I was not able to connect to internet using the default network manager in Ubuntu, so I set up the internet connection using "sudo pppoeconf" and it works great. I want to share this internet connection with another PC which runs Windows XP. Please, can anybody give me step by step instructions about how to do that? (instructions for configuring both Ubuntu and windows machine, A GUI will be very helpful) Both my Ubuntu machine and windows PC have static IP. And I dont want anyone to use this internet connection except the windows PC.
I've been able to make my server connect to my clients but not able to share the internet connection. I've been searching around but haven't come across an answer yet. Hoping someone here will point me in the right directiong. I have the following setup running. I'm trying to make an internet connection go through my server but haven't been able to get it to work.
How can I drop or forward a incoming connection from a part of a host like *.alicedsl.de For example: The user is connection from *.alicedsl.de on port 12345 So how can I drop this connection or forward to google.com on port 80
Last night I have installed updates of plymouth themes and pidgin but some how what happens is that the updates have changed my system setting and deleted xorg.conf file and some other settings and i couldn't able to get login screen either.I have recreated it using #Xorg -configure but still I cant get Login screen and in the gui I only get a blank screen where cursor is blinking.
I have tried installing system-config-display and reboot the system after doing #system-config-display --reconfig --noui but it is still same still not getting login screen.
I have ati radeon xpress200 on board graphics card. I searched on google to how to install the ati graphics card on fedora12 and found that mesa-driver-experimental could be used for fedora12 but still after installing it I found no effect in fedora12 right now it is running on a basic vesa drivers that I have set in xorg.conf. With vesa driver I can able to login but when I have installed xorg-x11-ati drivers and then do system-config-display. I can see the login screen but after giving password. It just giving blank screen and return back to login screen and again asks for login. I can login through terminal with the same account but cant with the GUI. Now what to do to for that?
i am using fedora12,i just wanted to know whether it is possible to add gadgets at the right hand side of your desktop. ie radio button,weather report etc which are present in windows 07/vista
i would like to know the list of browser's that fedora 12 supports (except firefox).i had installed opera 10.5 and it give me an error message kernel just crashed and restarts!i dont think so opera 10.5 is That stable with fedora, works properly in xp though.neways do tell me some browsers that can run smoothly in fedora
I recently installed Fedora 12 but Firefox will not launch now so I downloaded from Mozilla and installed the latest version using Vista but it still will not work yet I can download emails and go online using the live cd.
I'm trying to install dimdim on fedora12, but I'm not sure what to do after downloading the source code. Is there any other way to install other than using source code?
I am a new user to fedora 12.I am using reliance wireless broadband for internet.i have installed the drivers and did a wvdialconf and wvdial. The output of the wvdial was:
Code: [root@gnanam gnanam]# wvdial --> WvDial: Internet dialer version 1.60
I am using fedora12 and i was wondering whether i could upgrade my fedora12 to fedora13!!i dont want to start installing fedora13 all over again(boot it again from a cd),i want to just upgrade it directly from my fedora12.when you install fedora13 will all the files of fedora12 get replaced with fedora13 or will it just add additional files onto your fedora12?
Does anybody know why the upgrade/install of TeXLive on Fedora12 does not create the directory /usr/local/ texlive/2009.I have seen this directory mentioned for other 2009s, but when I installed 2009 it did not create this. (Or, maybe there was some problem... ?) It is only slightly relevant because (sudo) texhash does not include any /usr/local directories in 2009, only /usr/share.
In my 2007 version I had the usual /usr/local/share/texmf/tex structure in which I place /latex and a /bibtex. I had read/write access and so I placed all my .sty and .bib files, as well as image files and other stuff I shared between projects. Now, I have a ~/texmf with /tex and /bibtex and have gotten rid of /latex subdirectory. Now I don't have to texhash when I add new stuff.Other than this, is there any reason why Fedora TeXLive-2009 would not create /usr/local/texlive ? (Unless this is because, as the wiki page notes , "it is in testing state so bugs could occur."
I'm a frequent user of the shared connection feature of SSH. Usually i have two or three connections open at the same time through the connection sharing feature, but sometimes when i try to start another i get the message "Shared connection to <server< closed". All the connection that are established through the connection sharing feature are still active and not closed, but when i try to create a new one i get that message.. i've even got that message when i have only had two connections through the shared connection feature.
I've tried to search google but it doesnt seem like anyone else has had the same kind of problem, does someone know why i sometimes get this error ?
I am facing a strange problem witht my iptables as there are some firewall entries stored somewhere which is displaying the below firewall entries even after flushing the iptables & when I restart the iptables service then the firewall entries are again shown in my iptables as shown below,
I have done the ICS in my ubuntu 10.10 according to this article using eth0 connecting to wan router and eth1 connecting to the lan switch. Everything works fine.I have an open vpn connection which have full tunneling through the server. I want the vpn connection to be shared on the lan, and every internet connection will go through the vpn server. If I change the eth0 to tunnel adapter in iptables forwarding rule, will it work?
I have fedora12 installed on my old laptop. I would like to use it as a wireless router so that I can use my new laptop without wires. The old laptop will be wired connected to the internet. I have already tried creating a wireless ad-hoc connection with the Network Manager and I manage to connect to the internet with my new laptop but only if I don't use any protection. If I want that connection to use WPA or WEP-128 it doesn't work!
I am using Ubuntu 9.10 and trying to use Internet Connection Sharing through my Dell Mini 9 laptop.
The incoming internet is from wireless The outgoing internet is from Ethernet I am using a crossover cable as I have heard this is necessary I followed the 9.10 method on my Auto Eth 0 connection Here is a link to the Ubuntu Documentation I used The computer I am trying to share to does not pick up the internet being shared from the cable.
I have a mobile broadband usb modem that I get my internet connection from, and I would like to share this connection through a router that is connected to the same computer via ethernet. I'm running Ubuntu 9.10.
I want to use the wifi card in my laptop to share my internet connection to my Android Phone.Android phones don't support Ad-hoc networks yet (maybe not ever) so I need to the shared network in Infrastructure mode not ad-hoc mode.Using Ubuntu 10.04, If I click on the NetworkManager Applet ( 0.8 ) and select Create new wireless network, it will create an ad-hoc network, I then tried changing this to infrastructure, but it didn't work.Is there some way of modifying this created network to make it appear as infrastructure, or alternatively create a shared internet connection in infrastructure mode?
What can you recommend software to link sharing, and priority services such as VoIP, email, web, ftp others. The only thing I got it [URL], but it is not developed since 2008 ri do not know if it works.
I hope this diagram shows my intentions, how i may have an internet connection via phone or wlan1 share it with eth0 and wlan0
Anyway as i said, i have done _some_ of this, this is where i get stuck i did this (while as SU)
Code:
I then configured dnsmasq using the settings on that page
I then plugged my laptop into the switch and tried to connect- IT WORKED I then plugged my computer into the switch - IT DIDN'T xbox 360 didn't work.
But the laptop still did
I used firestarter along side this setup to see connections, nothing was blocked (bar dns which i unblocked) and my laptop still worked after
The xbox wasn't able to get an IP adress, the laptop did (192.168.254.246) nor was the computer
I can give more data on request, but.... after i restarted nothing worked, i did the settings again, nothing worked, eth0 was never ready, and you can't connect it to the switch. i'm new to networking; i'd call myself an adept novice regarding linux itself, and all computers can be assumed to be using ubuntu 10.10
I have discussed sharing an internet connection with my neighbor so we can both save money. We both have multiple computers connected to consumer grade routers. I've tinkered with WDS configurations but it was very unreliable and cumbersome to manage for reasons I won't get in to here. I'm thinking of getting my ubuntu server box to connect to my neighbor's wifi (via a USB wifi adapter) and share the connection through my router to my own subnet, (wired and wireless).
Can anyone shed some light on how I can best accomplish this?I can see a number of hurdles with this, maybe there are some I have yet to discover:Getting the USB wireless adapter to connect and stay that way via commandline.Configuring ICS from the USB connection to ethernet out to my router.Probably moving DHCP duty from my router to my server.Getting it all to work reliably well.