JOHANNESBURG (Reuters) - Dale Steyn was the architect of another Australian batting collapse as South Africa ended the second day of the second test Friday trailing by just 30 runs with all 10 second-innings wickets intact. Steyn took four for 64 in 18 overs to help bowl out Australia for 296 in reply to South Africa's first innings of 266. South Africa's second innings was cut short by bad light after just four balls with the hosts 0 without loss. Australian openers Shane Watson and Phil Hughes earlier both scored 88 as the visitors soared to 174 for nought, before crashing in the afternoon session as South Africa's bowling improved considerably. Seamer Vernon Philander, playing in just his second test, did much to turn the tide with his accurate bowling and he started the collapse when he forced Hughes to edge a back-foot drive to first slip, where AB de Villiers held on to a sharp head-high catch. Watson then pulled Jacques Kallis to the midwicket boundary, where Imran Tahir dived to complete a fine catch. Former captain Ricky Ponting -- scouring desperately for runs in a bid to save his international career -- lasted just three balls before Steyn trapped him lbw for a duck with an in-swinger, leaving Australia's leading run-scorer with just 245 runs in 15 innings in the last year. Current captain, Michael Clarke and the inexperienced Usman Khawaja then took the total to 212 for three before the extra bounce obtained by tall fast bowler Morne Morkel undid Clarke, who was caught in the slips by De Villiers for 11. Steyn then ensured the Australian innings remained on the skids after the tea break with two wickets in four overs, saving his best delivery of the day -- a sharp in-swinger -- to bowl Mike Hussey for 20. Khawaja's footwork eventually let him down after a vigil of nearly two hours for 12 runs as Steyn trapped him lbw. Steyn claimed his fourth wicket when wicketkeeper Mark Boucher took a brilliant catch, diving in front of first slip as the ball dipped, to dismiss Pat Cummins for two. He would have had a fifth wicket, but substitute fielder Dale Deeb dropped an easy catch from last man Nathan Lyon at mid-off. Mitchell Johnson's 38 not out ensured Australia first matched South Africa's first-innings total and then gained a small lead. South Africa's Pakistan-born leg-spinner Tahir wrapped up the tail as he grabbed his first three test wickets, at a cost of 55 runs in 13.4 overs. Australia must win the second and last test to avoid losing a series in South Africa for the first time since 1970 after the hosts won a memorable first test in Cape Town where the tourists were all out for 47. Meanwhile, Australia's sports minister has welcomed moves to introduce nationwide laws for match-fixing which would include a maximum jail term of 10 years. Law ministers from Australia's states and territories agreed on Friday to introduce nationally-consistent penalties for match-fixing offences. Australia's Standing Council on Law and Justice previously supported a maximum penalty of 10 years imprisonment for anyone found guilty of using inside information to bet on sports events they knew to be fixed. SCOREBOARD South Africa 1st Innings: 266 Australia 1st Innings Watson c Tahir b Kallis 88 Hughes c de Villiers b Philander 88 Usman Kh lbw b Steyn 12 R Ponting lbw b Steyn 0 M Clarke c de Villiers b Morkel 11 Mike Hussey b Steyn 20 B Haddin lbw b Tahir 16 M Johnson not out 38 Peter Siddle b Tahir 0 P Cummins c Boucher b Steyn 2 N Lyon lbw b Tahir 2 EXTRAS: (4b, 8lb, 3w, 4nb) 19 TOTAL: (all out, 76.4) 296 FOW: 1-174, 2-192, 3-193, 4-212, 5-228, 6-233, 7-255, 8-255,9-285. Bowling: Dale Steyn 18-3-64-4, Vernon Philander 15-4-47-1, Morne Morkel 17-4-62-1, Jacques Kallis 13-2-56-1, Imran Tahir 13.4-2-55-3. SOUTH AFRICA second innings: G Smith not out 0 J Rudolph not out 0 Extras: 0 TOTAL: (no wicket, 0.4 overs) 0 BOWLING: Johnson 0.4-0-0-0